|
|
|
@ -682,11 +682,11 @@ public class AudioSessionHub { |
|
|
|
|
|
|
|
switch action { |
|
|
|
case .increase: |
|
|
|
newValue = min(currentValue + 0.1, 1.0) // 改回0.1避免变化过大 |
|
|
|
newValue = min(currentValue + 0.2, 1.0) // 改回0.1避免变化过大 |
|
|
|
case .decrease: |
|
|
|
newValue = max(currentValue - 0.1, 0.0) |
|
|
|
newValue = max(currentValue - 0.2, 0.0) |
|
|
|
case .mute: |
|
|
|
newValue = 0.0 |
|
|
|
newValue = 0.1 |
|
|
|
case .setMax: |
|
|
|
newValue = 1.0 |
|
|
|
case .setValue(let val): |
|
|
|
|