summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-05 20:15:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-05 20:15:22 +0000
commit0f1f2826893bd55da8e93b79830d3a7b171509e3 (patch)
tree91d93d97b281546b451673ba8e94a8d6c700e5bf /include
parent412d4744efae64083e4f99a664e3efaba031af48 (diff)
parentb3b2e23fcf7e050710d23b82a6682c0f3d869b69 (diff)
downloadframeworks_av-0f1f2826893bd55da8e93b79830d3a7b171509e3.zip
frameworks_av-0f1f2826893bd55da8e93b79830d3a7b171509e3.tar.gz
frameworks_av-0f1f2826893bd55da8e93b79830d3a7b171509e3.tar.bz2
Merge "Add AudioRecord::mReqFrameCount similar to AudioTrack"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioRecord.h6
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