diff options
author | Glenn Kasten <gkasten@google.com> | 2013-07-31 16:10:22 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-08-02 16:22:42 -0700 |
commit | 27f7b2a8fe899565487d8a326676a5f7d0a05a37 (patch) | |
tree | fa0b6b4ee7cfb1e6b0e7cd0f6d6114498bb176bf /media | |
parent | 28f1351369682801e1bb40a835bdae3c97b73c1c (diff) | |
download | frameworks_av-27f7b2a8fe899565487d8a326676a5f7d0a05a37.zip frameworks_av-27f7b2a8fe899565487d8a326676a5f7d0a05a37.tar.gz frameworks_av-27f7b2a8fe899565487d8a326676a5f7d0a05a37.tar.bz2 |
AudioRecord::set and constructor now take flags
The new optional parameter 'flags' of type audio_input_flags_t will be
used for requesting a fast track.
Change-Id: Ia7e070cb57c833e608352da354fb30dc26df6918
Diffstat (limited to 'media')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 7be7529..d4495dc 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -87,7 +87,8 @@ AudioRecord::AudioRecord( void* user, int notificationFrames, int sessionId, - transfer_type transferType) + transfer_type transferType, + audio_input_flags_t flags) : mStatus(NO_INIT), mSessionId(0), mPreviousPriority(ANDROID_PRIORITY_NORMAL), mPreviousSchedulingGroup(SP_DEFAULT), @@ -129,7 +130,8 @@ status_t AudioRecord::set( int notificationFrames, bool threadCanCallJava, int sessionId, - transfer_type transferType) + transfer_type transferType, + audio_input_flags_t flags) { switch (transferType) { case TRANSFER_DEFAULT: @@ -218,6 +220,8 @@ status_t AudioRecord::set( } ALOGV("set(): mSessionId %d", mSessionId); + mFlags = flags; + audio_io_handle_t input = AudioSystem::getInput(inputSource, sampleRate, format, |