mirror of
https://github.com/bitgapp/eqMac.git
synced 2024-11-22 22:32:17 +03:00
fix incorrect balance calculation on startup
This commit is contained in:
parent
e788c1a396
commit
349187df4c
@ -284,7 +284,13 @@ class Application {
|
||||
}
|
||||
|
||||
if (selectedDevice!.outputBalanceSupported) {
|
||||
balance = Double(selectedDevice!.virtualMasterBalance(direction: .playback)!)
|
||||
balance = Utilities.mapValue(
|
||||
value: Double(selectedDevice!.virtualMasterBalance(direction: .playback)!),
|
||||
inMin: 0,
|
||||
inMax: 1,
|
||||
outMin: -1,
|
||||
outMax: 1
|
||||
)
|
||||
}
|
||||
|
||||
Application.dispatchAction(VolumeAction.setBalance(balance, false))
|
||||
|
Loading…
Reference in New Issue
Block a user