diff options
author | David 'Digit' Turner <digit@android.com> | 2011-01-02 13:13:33 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-01-02 13:13:33 +0100 |
commit | 1306e385222558accba9a01fd93858f06dccf77e (patch) | |
tree | fc978bec3c457a30593b98d95e1cca7faa222c59 /android | |
parent | 5d0e37bc290d1743cb5acf76eb6608f1303f27dd (diff) | |
download | external_qemu-1306e385222558accba9a01fd93858f06dccf77e.zip external_qemu-1306e385222558accba9a01fd93858f06dccf77e.tar.gz external_qemu-1306e385222558accba9a01fd93858f06dccf77e.tar.bz2 |
Remove obsolete -audio-in and -audio-out options.
Use -audio <backend> to select the audio driver.
Change-Id: I71c837e4c78241711be5f38ef9b03294a69145bd
Diffstat (limited to 'android')
-rw-r--r-- | android/cmdline-options.h | 2 | ||||
-rw-r--r-- | android/help.c | 60 | ||||
-rw-r--r-- | android/main-ui.c | 9 | ||||
-rw-r--r-- | android/main.c | 9 |
4 files changed, 0 insertions, 80 deletions
diff --git a/android/cmdline-options.h b/android/cmdline-options.h index 3ee5f45..104de7e 100644 --- a/android/cmdline-options.h +++ b/android/cmdline-options.h @@ -108,8 +108,6 @@ OPT_PARAM( logcat, "<tags>", "enable logcat output with given tags" ) OPT_FLAG ( no_audio, "disable audio support" ) OPT_FLAG ( noaudio, "same as -no-audio" ) OPT_PARAM( audio, "<backend>", "use specific audio backend" ) -OPT_PARAM( audio_in, "<backend>", "use specific audio input backend" ) -OPT_PARAM( audio_out,"<backend>", "use specific audio output backend" ) OPT_FLAG ( raw_keys, "disable Unicode keyboard reverse-mapping" ) OPT_PARAM( radio, "<device>", "redirect radio modem interface to character device" ) diff --git a/android/help.c b/android/help.c index f226cf6..c49f3ff 100644 --- a/android/help.c +++ b/android/help.c @@ -889,71 +889,11 @@ help_audio(stralloc_t* out) " the '-audio <backend>' option allows you to select a specific backend\n" " to be used to both play and record audio in the Android emulator.\n\n" - " this is equivalent to calling both '-audio-in <backend>' and\n" - " '-audio-out <backend>' at the same time.\n\n" - - " use '-help-audio-out' to see a list of valid output <backend> values.\n" - " use '-help-audio-in' to see a list of valid input <backend> values.\n" " use '-audio none' to disable audio completely.\n\n" ); } static void -help_audio_out(stralloc_t* out) -{ - int nn; - - PRINTF( - " the '-audio-out <backend>' option allows you to select a specific\n" - " backend to play audio in the Android emulator. this is mostly useful\n" - " on Linux\n\n" - - " on this system, output <backend> can be one of the following:\n\n" - ); - for ( nn = 0; ; nn++ ) { - char name[512]; - char descr[4096]; - if (android_core_audio_get_backend_name(0, nn, name, sizeof(name), - descr, sizeof(descr))) { - break; - } - PRINTF( " %-10s %s\n", name, descr ); - } - PRINTF( "\n" ); -} - -static void -help_audio_in(stralloc_t* out) -{ - int nn; - - PRINTF( - " the '-audio-in <backend>' option allows you to select a specific\n" - " backend to play audio in the Android emulator. this is mostly useful\n" - " on Linux\n\n" - - " IMPORTANT NOTE:\n" - " on some Linux systems, broken Esd/ALSA/driver implementations will\n" - " make your emulator freeze and become totally unresponsive when\n" - " using audio recording. the only way to avoid this is to use\n" - " '-audio-in none' to disable it\n\n" - - " on this system, input <backend> can be one of:\n\n" - ); - for ( nn = 0; ; nn++ ) { - char name[512]; - char descr[4096]; - if (android_core_audio_get_backend_name(1, nn, name, sizeof(name), - descr, sizeof(descr))) { - break; - } - PRINTF( " %-10s %s\n", name, descr ); - } - PRINTF( "\n" ); -} - - -static void help_scale(stralloc_t* out) { PRINTF( diff --git a/android/main-ui.c b/android/main-ui.c index 043a9a8..688c529 100644 --- a/android/main-ui.c +++ b/android/main-ui.c @@ -1472,15 +1472,6 @@ int main(int argc, char **argv) args[n++] = opts->audio; } - if (opts->audio_in) { - args[n++] = "-audio-in"; - args[n++] = opts->audio_in; - } - if (opts->audio_out) { - args[n++] = "-audio-out"; - args[n++] = opts->audio_out; - } - if (opts->cpu_delay) { args[n++] = "-cpu-delay"; args[n++] = opts->cpu_delay; diff --git a/android/main.c b/android/main.c index 0eebffb..1244c13 100644 --- a/android/main.c +++ b/android/main.c @@ -1240,15 +1240,6 @@ int main(int argc, char **argv) args[n++] = opts->audio; } - if (opts->audio_in) { - args[n++] = "-audio-in"; - args[n++] = opts->audio_in; - } - if (opts->audio_out) { - args[n++] = "-audio-out"; - args[n++] = opts->audio_out; - } - if (opts->cpu_delay) { args[n++] = "-cpu-delay"; args[n++] = opts->cpu_delay; |