summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-08-05 19:11:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-05 19:11:34 +0000
commit9de3fd115a020868d4d1fb6c6d2de3fed176bf60 (patch)
treeae080553843576208741b9e1aaa8a9be016c7f55 /include
parentd98e07fdf9c338589f263c47ce5c844ed43efad5 (diff)
parentc051ffd7c24bbe989c9e39c793c6bbbac3ee3eff (diff)
downloadsystem_core-9de3fd115a020868d4d1fb6c6d2de3fed176bf60.zip
system_core-9de3fd115a020868d4d1fb6c6d2de3fed176bf60.tar.gz
system_core-9de3fd115a020868d4d1fb6c6d2de3fed176bf60.tar.bz2
Merge "Add audio_input_flags_t"
Diffstat (limited to 'include')
-rw-r--r--include/system/audio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/system/audio.h b/include/system/audio.h
index 6c260dd..abd2990 100644
--- a/include/system/audio.h
+++ b/include/system/audio.h
@@ -389,6 +389,16 @@ typedef enum {
AUDIO_OUTPUT_FLAG_NON_BLOCKING = 0x20 // use non-blocking write
} audio_output_flags_t;
+/* The audio input flags are analogous to audio output flags.
+ * Currently they are used only when an AudioRecord is created,
+ * to indicate a preference to be connected to an input stream with
+ * attributes corresponding to the specified flags.
+ */
+typedef enum {
+ AUDIO_INPUT_FLAG_NONE = 0x0, // no attributes
+ AUDIO_INPUT_FLAG_FAST = 0x1, // prefer an input that supports "fast tracks"
+} audio_input_flags_t;
+
/* Additional information about compressed streams offloaded to
* hardware playback
* The version and size fields must be initialized by the caller by using