summaryrefslogtreecommitdiffstats
path: root/include/media/AudioRecord.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-08-05 21:56:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-05 21:56:17 +0000
commit77baebfe89c99415a0ee4c2ea87bfd8a0f9e51f1 (patch)
tree8a8f4aa15e520fddf80ed076f54b14ed6085dc50 /include/media/AudioRecord.h
parent9b26847ed122a601ba857e0ef22ee2c818641120 (diff)
parent27f7b2a8fe899565487d8a326676a5f7d0a05a37 (diff)
downloadframeworks_av-77baebfe89c99415a0ee4c2ea87bfd8a0f9e51f1.zip
frameworks_av-77baebfe89c99415a0ee4c2ea87bfd8a0f9e51f1.tar.gz
frameworks_av-77baebfe89c99415a0ee4c2ea87bfd8a0f9e51f1.tar.bz2
Merge "AudioRecord::set and constructor now take flags"
Diffstat (limited to 'include/media/AudioRecord.h')
-rw-r--r--include/media/AudioRecord.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h
index 8b7f20c..329910e 100644
--- a/include/media/AudioRecord.h
+++ b/include/media/AudioRecord.h
@@ -143,6 +143,7 @@ public:
* frames are ready in record track output buffer.
* sessionId: Not yet supported.
* transferType: How data is transferred from AudioRecord.
+ * flags: See comments on audio_input_flags_t in <system/audio.h>
* threadCanCallJava: Not present in parameter list, and so is fixed at false.
*/
@@ -155,7 +156,8 @@ public:
void* user = NULL,
int notificationFrames = 0,
int sessionId = 0,
- transfer_type transferType = TRANSFER_DEFAULT);
+ transfer_type transferType = TRANSFER_DEFAULT,
+ audio_input_flags_t flags = AUDIO_INPUT_FLAG_NONE);
/* Terminates the AudioRecord and unregisters it from AudioFlinger.
* Also destroys all resources associated with the AudioRecord.
@@ -187,7 +189,8 @@ public:
int notificationFrames = 0,
bool threadCanCallJava = false,
int sessionId = 0,
- transfer_type transferType = TRANSFER_DEFAULT);
+ transfer_type transferType = TRANSFER_DEFAULT,
+ audio_input_flags_t flags = AUDIO_INPUT_FLAG_NONE);
/* Result of constructing the AudioRecord. This must be checked
* before using any AudioRecord API (except for set()), because using
@@ -468,6 +471,7 @@ private:
audio_source_t mInputSource;
uint32_t mLatency; // in ms
audio_channel_mask_t mChannelMask;
+ audio_input_flags_t mFlags;
int mSessionId;
transfer_type mTransfer;