Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 46c746d9 authored by David Overton's avatar David Overton Committed by Luca Stefani
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>
parent fb0e6d96
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