diff options
author | Glenn Kasten <gkasten@google.com> | 2013-07-31 16:10:53 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-08-02 16:22:42 -0700 |
commit | 73493688f4190f790ee15d9ca54831cd64f4e195 (patch) | |
tree | e1655201bfb7d8339e48afd78597c5cd3bcb1b33 | |
parent | 90e58b1fefc8caf70b34301a92bc86179580b6fc (diff) | |
download | frameworks_av-73493688f4190f790ee15d9ca54831cd64f4e195.zip frameworks_av-73493688f4190f790ee15d9ca54831cd64f4e195.tar.gz frameworks_av-73493688f4190f790ee15d9ca54831cd64f4e195.tar.bz2 |
AudioRecord::openRecord_l now take flags
The new parameter 'flags' of type audio_input_flags_t will be used for
requesting a fast track, but is currently ignored.
Change-Id: If68dfda8b2d4eaaca42927d721b4630c47f71f3b
-rw-r--r-- | include/media/AudioRecord.h | 1 | ||||
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index bcf2039..7c240b4 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -423,6 +423,7 @@ private: status_t openRecord_l(uint32_t sampleRate, audio_format_t format, size_t frameCount, + audio_input_flags_t flags, audio_io_handle_t input, size_t epoch); diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index b5060b1..dfaac4c 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -253,7 +253,7 @@ status_t AudioRecord::set( } // create the IAudioRecord - status = openRecord_l(sampleRate, format, frameCount, input, 0 /*epoch*/); + status = openRecord_l(sampleRate, format, frameCount, mFlags, input, 0 /*epoch*/); if (status != NO_ERROR) { return status; } @@ -438,6 +438,7 @@ status_t AudioRecord::openRecord_l( uint32_t sampleRate, audio_format_t format, size_t frameCount, + audio_input_flags_t flags, audio_io_handle_t input, size_t epoch) { @@ -911,7 +912,7 @@ status_t AudioRecord::restoreRecord_l(const char *from) // It will also delete the strong references on previous IAudioRecord and IMemory size_t position = mProxy->getPosition(); mNewPosition = position + mUpdatePeriod; - result = openRecord_l(mSampleRate, mFormat, mFrameCount, getInput_l(), position); + result = openRecord_l(mSampleRate, mFormat, mFrameCount, mFlags, getInput_l(), position); if (result == NO_ERROR) { if (mActive) { // callback thread or sync event hasn't changed |