Change default stream volume for TV to 1/4 max instead of 3/4

b/26048878

Change-Id: I423e9b8fb03d6875e7d0e4a4266943e950defefe
(cherry picked from commit db27de5da493b9d791321e8771ae59998dad8c28)
This commit is contained in:
Hank Freund
2015-12-11 10:50:45 -08:00
committed by Takayuki Hoshi
parent cd854f58d0
commit 45926dcc1f

View File

@@ -630,7 +630,11 @@ public class AudioService extends IAudioService.Stub {
MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]);
if (maxVolume != MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]) {
MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = maxVolume;
AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = (maxVolume * 3) / 4;
if (isPlatformTelevision()) {
AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = maxVolume / 4;
} else {
AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = (maxVolume * 3) / 4;
}
}
sSoundEffectVolumeDb = context.getResources().getInteger(