Skip to content

Commit

Permalink
SNES: MSU1 - Fixed "playing" flag not being cleared when a non-loopin…
Browse files Browse the repository at this point in the history
…g track ends
  • Loading branch information
SourMesen committed Feb 3, 2024
1 parent f216ef7 commit 5c2c3a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/SNES/Coprocessors/MSU1/Msu1.cpp
Expand Up @@ -108,6 +108,8 @@ void Msu1::MixAudio(int16_t* buffer, uint32_t sampleCount, uint32_t sampleRate)
if(!_paused) {
_pcmReader.SetSampleRate(sampleRate);
_pcmReader.ApplySamples(buffer, (size_t)sampleCount, _spc->IsMuted() ? 0 : _volume);

_paused |= _pcmReader.IsPlaybackOver();
}
}

Expand Down

0 comments on commit 5c2c3a4

Please sign in to comment.