if ( rtaudio && !mlt_consumer_init( rtaudio->getConsumer(), rtaudio, profile ) )
{
// If initialises without error
- if ( rtaudio->open( arg ) )
+ if ( rtaudio->open( arg? arg : getenv( "AUDIODEV" ) ) )
{
// Setup callbacks
consumer = rtaudio->getConsumer();