fixed effective volume for C = 0

This commit is contained in:
thrust26 2017-12-01 21:15:11 +01:00
parent d3f29a1432
commit 8abc49af1f
1 changed files with 3 additions and 2 deletions

View File

@ -200,6 +200,7 @@ void AudioWidget::changeControlRegs()
instance().debugger().tiaDebug().audC1(value);
break;
}
handleVolume();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -230,6 +231,6 @@ uInt32 AudioWidget::getEffectiveVolume()
70, 72, 75, 78, 80, 82, 85, 87,
89, 91, 93, 95, 97, 98,100};
return EFF_VOL[instance().debugger().tiaDebug().audV0() +
instance().debugger().tiaDebug().audV1()];
return EFF_VOL[(instance().debugger().tiaDebug().audC0() ? instance().debugger().tiaDebug().audV0() : 0) +
(instance().debugger().tiaDebug().audC1() ? instance().debugger().tiaDebug().audV1() : 0)];
}