aboutsummaryrefslogtreecommitdiffstats
path: root/android/audio-test.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-01-02 13:17:22 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-01-02 13:18:16 +0100
commitca29fbbb188a1aab9b69776d5dc6bc3e7f812a0a (patch)
tree49975f4c226c17a22f824f1763a4ad7eeeadf9a7 /android/audio-test.h
parent5164d3c53f57dfb468ab11136358b6e3b6cf0513 (diff)
downloadexternal_qemu-ca29fbbb188a1aab9b69776d5dc6bc3e7f812a0a.zip
external_qemu-ca29fbbb188a1aab9b69776d5dc6bc3e7f812a0a.tar.gz
external_qemu-ca29fbbb188a1aab9b69776d5dc6bc3e7f812a0a.tar.bz2
Add -audio-test-out option to the core.
This option can be used to quickly check audio output (without having to boot a full AVD and launch a sound-playing application). Usage: emulator <other-options> -qemu -audio-test-out qemu-android <other-options> -audio-test-out This simply generates an ugly saw signal, but that's enough for us. Change-Id: I060300b4000b9705d181c6262de8d4d13c749e69
Diffstat (limited to 'android/audio-test.h')
-rw-r--r--android/audio-test.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/android/audio-test.h b/android/audio-test.h
new file mode 100644
index 0000000..8113aae
--- /dev/null
+++ b/android/audio-test.h
@@ -0,0 +1,22 @@
+/* Copyright (C) 2010 The Android Open Source Project
+**
+** This software is licensed under the terms of the GNU General Public
+** License version 2, as published by the Free Software Foundation, and
+** may be copied, distributed, and modified under those terms.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+*/
+#ifndef ANDROID_AUDIO_TEST_H
+#define ANDROID_AUDIO_TEST_H
+
+/* Start the audio test output, this will register a virtual sound
+ * device that sends a saw signal to the audio sub-system. This is
+ * used to test that the audio backend works without having to boot
+ * a full system and launch a music application.
+ */
+extern int android_audio_test_start_out(void);
+
+#endif /* ANDROID_AUDIO_TEST_H */