Restore MSU1 playback position correctly.

This commit is contained in:
Brandon Wright 2019-04-17 12:10:59 -05:00
parent 38105c85c2
commit 7e865c628a
1 changed files with 3 additions and 1 deletions

View File

@ -405,6 +405,8 @@ void S9xMSU1PostLoadState(void)
if (MSU1.MSU1_STATUS & AudioPlaying)
{
uint32 savedPosition = MSU1.MSU1_AUDIO_POS;
if (AudioOpen())
{
REVERT_STREAM(audioStream, 4, 0);
@ -413,7 +415,7 @@ void S9xMSU1PostLoadState(void)
audioLoopPos <<= 2;
audioLoopPos += 8;
REVERT_STREAM(audioStream, MSU1.MSU1_AUDIO_POS, 0);
REVERT_STREAM(audioStream, savedPosition, 0);
}
else
{