From 6856ffc22c95e400fb1f47d342b3b9242e53f77e Mon Sep 17 00:00:00 2001 From: yangws Date: Thu, 19 May 2011 14:57:16 +0800 Subject: [PATCH] Modify SoundPlayer.cpp for the last TMediaPlayer.so --- CocosDenshion/wophone/SoundPlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CocosDenshion/wophone/SoundPlayer.cpp b/CocosDenshion/wophone/SoundPlayer.cpp index 94fa777a4d..c7e5e4c6af 100644 --- a/CocosDenshion/wophone/SoundPlayer.cpp +++ b/CocosDenshion/wophone/SoundPlayer.cpp @@ -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(); }