summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-08-06 07:40:12 -0700
committerGlenn Kasten <gkasten@google.com>2013-08-06 08:48:29 -0700
commit70949c47fbae3f836d15f040551d7631be3ed7c2 (patch)
tree4bed0b2a693f915ca1d92233664dec9d49e20e5a /services/audioflinger/Threads.h
parent77baebfe89c99415a0ee4c2ea87bfd8a0f9e51f1 (diff)
downloadframeworks_av-70949c47fbae3f836d15f040551d7631be3ed7c2.zip
frameworks_av-70949c47fbae3f836d15f040551d7631be3ed7c2.tar.gz
frameworks_av-70949c47fbae3f836d15f040551d7631be3ed7c2.tar.bz2
Pull up mBufferSize from RecordThread to ThreadBase
Now both playback and record threads have a HAL buffer size for fast tracks, and a potentially larger-sized buffer for normal tracks. Change-Id: I6f57b85ecece3cbd4e9e64b8c41c3352f7656912
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index aa04fd4..99c42fc 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -270,6 +270,7 @@ protected:
uint32_t mChannelCount;
size_t mFrameSize;
audio_format_t mFormat;
+ size_t mBufferSize; // HAL buffer size for read() or write()
// Parameter sequence by client: binder thread calling setParameters():
// 1. Lock mLock
@@ -902,7 +903,6 @@ private:
int32_t *mRsmpOutBuffer;
int16_t *mRsmpInBuffer; // [mFrameCount * mChannelCount]
size_t mRsmpInIndex;
- size_t mBufferSize; // stream buffer size for read()
const uint32_t mReqChannelCount;
const uint32_t mReqSampleRate;
ssize_t mBytesRead;