From 8e4c672d3816a4b41af7e2fe0c3c593ee252b330 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 4 May 2015 16:27:28 +0100 Subject: 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 --- engines/agi/sound_pcjr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3