diff options
-rw-r--r-- | vl-android.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vl-android.c b/vl-android.c index acde409..47b802b 100644 --- a/vl-android.c +++ b/vl-android.c @@ -5178,10 +5178,13 @@ int main(int argc, char **argv, char **envp) /* Initialize audio. */ if (android_op_audio) { + char temp[128]; if ( !audio_check_backend_name( 0, android_op_audio ) ) { PANIC("'%s' is not a valid audio output backend. see -help-audio-out", android_op_audio); } + snprintf(temp, sizeof temp, "QEMU_AUDIO_DRV=%s", android_op_audio); + putenv(temp); } /* Initialize OpenGLES emulation */ |