summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-03-09 15:23:45 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-09 15:23:45 -0800
commitf2015b625cd6bea86da7401e725332c35b90e7cf (patch)
tree3ec55cd1f89c6c1ae8ea4614e32c654df9c72869 /include
parent5e9ce08417c36aa572c3f18b40ff9335d409b1e9 (diff)
parent679ab0b0792846a89162ce41c953819d70030112 (diff)
downloadframeworks_av-f2015b625cd6bea86da7401e725332c35b90e7cf.zip
frameworks_av-f2015b625cd6bea86da7401e725332c35b90e7cf.tar.gz
frameworks_av-f2015b625cd6bea86da7401e725332c35b90e7cf.tar.bz2
Merge "Use AudioRecord::record_flags consistently"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioRecord.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h
index 4fbeb38..7df6668 100644
--- a/include/media/AudioRecord.h
+++ b/include/media/AudioRecord.h
@@ -143,6 +143,8 @@ public:
* user Context for use by the callback receiver.
*/
+ // FIXME consider removing this alias and replacing it by audio_in_acoustics_t
+ // or removing the parameter entirely if it is unused
enum record_flags {
RECORD_AGC_ENABLE = AUDIO_IN_ACOUSTICS_AGC_ENABLE,
RECORD_NS_ENABLE = AUDIO_IN_ACOUSTICS_NS_ENABLE,
@@ -154,7 +156,7 @@ public:
audio_format_t format = AUDIO_FORMAT_DEFAULT,
uint32_t channelMask = AUDIO_CHANNEL_IN_MONO,
int frameCount = 0,
- uint32_t flags = 0,
+ record_flags flags = (record_flags) 0,
callback_t cbf = NULL,
void* user = NULL,
int notificationFrames = 0,
@@ -180,7 +182,7 @@ public:
audio_format_t format = AUDIO_FORMAT_DEFAULT,
uint32_t channelMask = AUDIO_CHANNEL_IN_MONO,
int frameCount = 0,
- uint32_t flags = 0,
+ record_flags flags = (record_flags) 0,
callback_t cbf = NULL,
void* user = NULL,
int notificationFrames = 0,
@@ -383,7 +385,7 @@ private:
bool mMarkerReached;
uint32_t mNewPosition;
uint32_t mUpdatePeriod;
- uint32_t mFlags;
+ record_flags mFlags;
uint32_t mChannelMask;
audio_io_handle_t mInput;
int mSessionId;