mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13363 from GammaEspeon/v3
[bugfix] SimpleAudioEngine misreporting whether music is playing when paused/resumed
This commit is contained in:
commit
f36d6a5c8c
|
@ -136,6 +136,7 @@ void MciPlayer::Close()
|
|||
void MciPlayer::Pause()
|
||||
{
|
||||
_SendGenericCommand(MCI_PAUSE);
|
||||
_playing = false;
|
||||
}
|
||||
|
||||
void MciPlayer::Resume()
|
||||
|
@ -153,6 +154,7 @@ void MciPlayer::Resume()
|
|||
else
|
||||
{
|
||||
_SendGenericCommand(MCI_RESUME);
|
||||
_playing = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue