diff options
author | Glenn Kasten <gkasten@google.com> | 2014-07-27 15:02:23 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-07-27 15:03:00 -0700 |
commit | 9f81de3452dfb2385bd57dc05456a045174a1ab1 (patch) | |
tree | af5e18f9686c58444ecd82e1bac52c530d503d1c /services/audioflinger | |
parent | 0fb47759256ecdaedbc34c880238bc9d102ef160 (diff) | |
download | frameworks_av-9f81de3452dfb2385bd57dc05456a045174a1ab1.zip frameworks_av-9f81de3452dfb2385bd57dc05456a045174a1ab1.tar.gz frameworks_av-9f81de3452dfb2385bd57dc05456a045174a1ab1.tar.bz2 |
Enable lower latency audio capture on more devices
Bug: 16601366
Change-Id: I573b98631f81b7768f7cc00aa09e560008dea587
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/Threads.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index c3aafd9..c959b9f 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -167,7 +167,7 @@ static int sFastTrackMultiplier = kFastTrackMultiplier; // Initially this heap is used to allocate client buffers for "fast" AudioRecord. // Eventually it will be the single buffer that FastCapture writes into via HAL read(), // and that all "fast" AudioRecord clients read from. In either case, the size can be small. -static const size_t kRecordThreadReadOnlyHeapSize = 0x1000; +static const size_t kRecordThreadReadOnlyHeapSize = 0x2000; // ---------------------------------------------------------------------------- @@ -4862,8 +4862,8 @@ AudioFlinger::RecordThread::RecordThread(const sp<AudioFlinger>& audioFlinger, // or primary output sample rate is unknown, and capture sample rate is reasonable ((primaryOutputSampleRate == 0) && ((mSampleRate == 44100 || mSampleRate == 48000)))) && - // and the buffer size is < 10 ms - (mFrameCount * 1000) / mSampleRate < 10; + // and the buffer size is < 12 ms + (mFrameCount * 1000) / mSampleRate < 12; break; // case FastCapture_Dynamic: } |