]> git.sesse.net Git - mlt/commitdiff
add support for AUDIODEV environment var to rtaudio
authorDan Dennedy <dan@dennedy.org>
Sun, 17 Jun 2012 05:56:31 +0000 (22:56 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 17 Jun 2012 05:56:31 +0000 (22:56 -0700)
src/modules/rtaudio/consumer_rtaudio.cpp

index f425fed0fce9638678850a9abc50976611d75c54..01f5955407bd4573fabedf26b8d797e1b4e02d1a 100644 (file)
@@ -640,7 +640,7 @@ mlt_consumer consumer_rtaudio_init( mlt_profile profile, mlt_service_type type,
        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();