diff --git a/engines/agi/sound_pcjr.cpp b/engines/agi/sound_pcjr.cpp
index 319b704..fdebf16 100644
a
|
b
|
int SoundGenPCJr::volumeCalc(SndGenChan *chan) {
|
219 | 219 | // return 0 if it's passing more data |
220 | 220 | // return -1 if it's passing nothing (end of data) |
221 | 221 | int SoundGenPCJr::getNextNote(int ch, Tone *tone) { |
| 222 | ToneChan *tpcm; |
222 | 223 | SndGenChan *chan; |
223 | 224 | const byte *data; |
224 | 225 | |
… |
… |
int SoundGenPCJr::getNextNote(int ch, Tone *tone) {
|
228 | 229 | if (!_vm->getflag(fSoundOn)) |
229 | 230 | return -1; |
230 | 231 | |
| 232 | tpcm = &_tchannel[ch]; |
231 | 233 | chan = &_channel[ch]; |
232 | 234 | if (!chan->avail) |
233 | 235 | return -1; |
… |
… |
int SoundGenPCJr::getNextNote(int ch, Tone *tone) {
|
241 | 243 | // if it's 0 then it's not going to be played |
242 | 244 | // if it's 0xFFFF then the channel data has finished. |
243 | 245 | if ((chan->duration != 0) && (chan->duration != 0xFFFF)) { |
| 246 | tpcm->genTypePrev = -1; |
| 247 | tpcm->freqCountPrev = -1; |
| 248 | |
244 | 249 | // only tone channels dissolve |
245 | 250 | if ((ch != 3) && (_dissolveMethod != 0)) // != noise?? |
246 | 251 | chan->dissolveCount = 0; |