From 8abc49af1f5a70170af7a12aa04381b772ee3b1f Mon Sep 17 00:00:00 2001 From: thrust26 Date: Fri, 1 Dec 2017 21:15:11 +0100 Subject: [PATCH] fixed effective volume for C = 0 --- src/debugger/gui/AudioWidget.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/debugger/gui/AudioWidget.cxx b/src/debugger/gui/AudioWidget.cxx index 2c267a4ea..b977295f5 100644 --- a/src/debugger/gui/AudioWidget.cxx +++ b/src/debugger/gui/AudioWidget.cxx @@ -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)]; }