Skip to content

Commit

Permalink
Fix a tricky bug that causes delays in playback
Browse files Browse the repository at this point in the history
... this bug was already present in stellaplayer. Obviously "effectNumber" must be checked, because "effectParameterX" just holds the "upper nibble" of effectParameter
  • Loading branch information
softhack007 authored Jan 3, 2022
1 parent fe7a1f7 commit 574d9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioGeneratorMOD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ bool AudioGeneratorMOD::ProcessRow()

if (sampleNumber) {
Player.lastSampleNumber[channel] = sampleNumber - 1;
if (!(effectParameter == 0xE && effectParameterX == NOTEDELAY))
if (!(effectNumber == 0xE && effectParameterX == NOTEDELAY))
Player.volume[channel] = Mod.samples[Player.lastSampleNumber[channel]].volume;
}

Expand Down

0 comments on commit 574d9de

Please sign in to comment.