mirror of https://github.com/axmolengine/axmol.git
Modify SoundPlayer.cpp for the last TMediaPlayer.so
This commit is contained in:
parent
e6c7d9fe63
commit
6856ffc22c
|
@ -121,7 +121,7 @@ void SoundPlayer::Release()
|
|||
|
||||
void SoundPlayer::Pause()
|
||||
{
|
||||
if (m_pPlayer && PLAYER_STATUS_PAUSED != m_pPlayer->GetCurrentStatus())
|
||||
if (m_pPlayer && PLAYER_STATUS_PLAYING == m_pPlayer->GetCurrentStatus())
|
||||
{
|
||||
m_pPlayer->Pause();
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ void SoundPlayer::Pause()
|
|||
|
||||
void SoundPlayer::Resume()
|
||||
{
|
||||
if (m_pPlayer && PLAYER_STATUS_PLAYING != m_pPlayer->GetCurrentStatus())
|
||||
if (m_pPlayer)
|
||||
{
|
||||
m_pPlayer->Resume();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue