summaryrefslogtreecommitdiffstats
path: root/include/system
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-08-01 07:35:33 -0700
committerGlenn Kasten <gkasten@google.com>2013-08-02 10:30:42 -0700
commitc051ffd7c24bbe989c9e39c793c6bbbac3ee3eff (patch)
treebf48e4d9f0c995927060237d9d19acb607fc6e09 /include/system
parentb4802413a72e74b41c674d93f30a56a4a693a862 (diff)
downloadsystem_core-c051ffd7c24bbe989c9e39c793c6bbbac3ee3eff.zip
system_core-c051ffd7c24bbe989c9e39c793c6bbbac3ee3eff.tar.gz
system_core-c051ffd7c24bbe989c9e39c793c6bbbac3ee3eff.tar.bz2
Add audio_input_flags_t
Change-Id: Ie65398cc67218cc63be4baa8a2a61d0ea591a2a3
Diffstat (limited to 'include/system')
-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