| commit | ec5746c10316a2a26022872d41c6002e8097caa7 | [log] [tgz] |
|---|---|---|
| author | Haynes Mathew George <hgeorge@codeaurora.org> | Mon Jan 14 16:17:36 2013 -0800 |
| committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | Sun Nov 03 02:47:04 2013 +0000 |
| tree | b11aa931aec5f38469e2d2f13daafc1fd900478b | |
| parent | 0868da69c72a30f46bd333adac86e93de7625709 [diff] |
libstagefright: Query AudioSystem for suggested record mute duration - AudioSource mutes a pre-defined duration (defined by kAutoRampStartUs) at the beginning of a recording. - Instead, query the audio system for any ongoing playback streams and use its output latency to calculate the duration to mute the incoming PCM stream. - This assumes all current playback threads will be paused once recording is started. CRs-Fixed: 438149 Change-Id: Ifaf59a9c09c0ece956379e10c801cad4dacfc8f3