diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-05 11:10:26 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-05 11:30:34 -0800 |
commit | b3b2e23fcf7e050710d23b82a6682c0f3d869b69 (patch) | |
tree | 96bca9e59c499afc149b25c210318a6f49e306da /include/media/AudioRecord.h | |
parent | 7332c37c459f5f382a9e4105d522d1c5a7f6f0b5 (diff) | |
download | frameworks_av-b3b2e23fcf7e050710d23b82a6682c0f3d869b69.zip frameworks_av-b3b2e23fcf7e050710d23b82a6682c0f3d869b69.tar.gz frameworks_av-b3b2e23fcf7e050710d23b82a6682c0f3d869b69.tar.bz2 |
Add AudioRecord::mReqFrameCount similar to AudioTrack
Change-Id: I62d6534a9581e84ae20c2422f7ad9aeda9b7c4df
Diffstat (limited to 'include/media/AudioRecord.h')
-rw-r--r-- | include/media/AudioRecord.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 3d839fc..33fa121 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -473,9 +473,13 @@ private: status_t mStatus; + size_t mFrameCount; // corresponds to current IAudioRecord, value is + // reported back by AudioFlinger to the client + size_t mReqFrameCount; // frame count to request the first or next time + // a new IAudioRecord is needed, non-decreasing + // constant after constructor or set() uint32_t mSampleRate; - size_t mFrameCount; audio_format_t mFormat; uint32_t mChannelCount; size_t mFrameSize; // app-level frame size == AudioFlinger frame size |