1
1
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:
Nodeful 2021-07-12 01:25:49 +03:00
parent e788c1a396
commit 349187df4c

View File

@ -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))