aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2015-05-04 16:27:28 +0100
committerThierry Crozat2015-05-10 15:38:54 +0100
commit8e4c672d3816a4b41af7e2fe0c3c593ee252b330 (patch)
tree2310e70e46821fb927cd2bc2aa1cd909723b8964
parentaee23fd7046622e18456d5e777bdf1c33b0f9b7d (diff)
downloadscummvm-rg350-8e4c672d3816a4b41af7e2fe0c3c593ee252b330.tar.gz
scummvm-rg350-8e4c672d3816a4b41af7e2fe0c3c593ee252b330.tar.bz2
scummvm-rg350-8e4c672d3816a4b41af7e2fe0c3c593ee252b330.zip
AGI: Use correct volume for PCjr output
This looks like a regression from commit 24bb5da: AGI: Add a layer of abstraction between the sound chip and the two players
-rw-r--r--engines/agi/sound_pcjr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/sound_pcjr.cpp b/engines/agi/sound_pcjr.cpp
index 51b2d067a4..3654b97e78 100644
--- a/engines/agi/sound_pcjr.cpp
+++ b/engines/agi/sound_pcjr.cpp
@@ -411,7 +411,7 @@ int SoundGenPCJr::chanGen(int chan, int16 *stream, int len) {
if (tpcm->noteCount <= 0) {
// get new tone data
if ((tpcm->avail) && (getNextNote(chan) == 0)) {
- tpcm->atten = _channel[chan].attenuation;
+ tpcm->atten = volumeCalc(&_channel[chan]);
tpcm->freqCount = _channel[chan].freqCount;
tpcm->genType = _channel[chan].genType;