diff options
author | Glenn Kasten <gkasten@google.com> | 2012-03-07 09:04:02 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-03-08 18:11:55 -0800 |
commit | 679ab0b0792846a89162ce41c953819d70030112 (patch) | |
tree | ecd714f568d940051e492b313f3af5bd5d9b4193 /include | |
parent | f3c2e3bd65449b413c378219e08c71bf744cfbf3 (diff) | |
download | frameworks_av-679ab0b0792846a89162ce41c953819d70030112.zip frameworks_av-679ab0b0792846a89162ce41c953819d70030112.tar.gz frameworks_av-679ab0b0792846a89162ce41c953819d70030112.tar.bz2 |
Use AudioRecord::record_flags consistently
Change-Id: I6f369a2b99eb515603bc7d5629a07db2b96783fe
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioRecord.h | 8 |
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; |