diff options
author | David 'Digit' Turner <digit@android.com> | 2011-05-21 00:42:27 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-05-21 00:44:10 +0200 |
commit | cc3b2199549c45cdabfdeb3afdb81b0895f5ceef (patch) | |
tree | 5c7748677bfd1f70173218fec069ecdba32c0a84 | |
parent | 1378630ee468a0aff2d0985c5b59291c3df80615 (diff) | |
download | external_qemu-cc3b2199549c45cdabfdeb3afdb81b0895f5ceef.zip external_qemu-cc3b2199549c45cdabfdeb3afdb81b0895f5ceef.tar.gz external_qemu-cc3b2199549c45cdabfdeb3afdb81b0895f5ceef.tar.bz2 |
fix audio backend handling
This patch fixes a small bug where the audio backend given with
the -audio <name> option was ignored. The bug was introduced during
a previous integration of upstream audio changes.
The old code always used the same default backend (PulseAudio).
Change-Id: I7bc68df3fd3025f8a8bd1f0fd868872b7eee2017
-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 */ |