Skip to content
Commit ac918900 authored by David Overton's avatar David Overton Committed by Jean-Michel Trivi
Browse files

Only play sound effects if stream is not muted.



Calling playSoundEffect() currently results in audio data being sent to
audioflinger regardless of whether or not the system stream is muted.

Although this already produces no audio, when nothing else is using the
audio system it does have the less desirable effect of waking up the
hardware to play 3+ seconds of silence before audioflinger goes idle
again - probably a waste of power.

Change-Id: I81a6cb17efe4036285f4af0567c3f0a31dda1152
Signed-off-by: default avatarDavid Overton <therealdave32@gmail.com>
(cherry picked from commit f0252a3a6ad5e1025003ef56a7723e9c8fabc077)
parent 05389356
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment