mirror of https://github.com/snes9xgit/snes9x.git
Restore MSU1 playback position correctly.
This commit is contained in:
parent
38105c85c2
commit
7e865c628a
4
msu1.cpp
4
msu1.cpp
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue