From eb9487e10294a4e73977f460f30eeaff503acd21 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 22 Jul 2015 09:15:17 -0700 Subject: Fix capture overruns at non-primary sample rate and small buffer size. Also: Pull out the magic number "12 ms" to a named constant. Remove obsolete AudioFlinger::mPrimaryOutputSampleRate. Bug: 22662814 Change-Id: I261f75a222c4505a84aad2493d251bd2dea59f68 --- services/audioflinger/AudioFlinger.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 4f7e27d..20c34ef 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -763,9 +763,7 @@ private: sp mPatchPanel; - uint32_t mPrimaryOutputSampleRate; // sample rate of the primary output, or zero if none - // protected by mHardwareLock - bool mSystemReady; + bool mSystemReady; }; #undef INCLUDING_FROM_AUDIOFLINGER_H -- cgit v1.1