forked from M66B/cm10-fxp-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmusic_volume.patch
21 lines (19 loc) · 1.05 KB
/
music_volume.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java
--- a/media/java/android/media/AudioService.java
+++ b/media/java/android/media/AudioService.java
@@ -221,7 +221,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
5, // STREAM_VOICE_CALL
7, // STREAM_SYSTEM
7, // STREAM_RING
- 15, // STREAM_MUSIC
+ 30, // STREAM_MUSIC
7, // STREAM_ALARM
7, // STREAM_NOTIFICATION
15, // STREAM_BLUETOOTH_SCO
@@ -281,7 +281,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
// Cap used for safe headset volume restore. The value directly applies
// to AudioSystem.STREAM_MUSIC volume and is rescaled for other streams.
- private static final int HEADSET_VOLUME_RESTORE_CAP = 10;
+ private static final int HEADSET_VOLUME_RESTORE_CAP = 20;
private final AudioSystem.ErrorCallback mAudioSystemCallback = new AudioSystem.ErrorCallback() {
public void onError(int error) {