From 61a2e0d2adc4f8436a857df7a5a7a5b965349e3d Mon Sep 17 00:00:00 2001 From: James Windiate Date: Thu, 13 Aug 2015 18:52:32 -0400 Subject: [PATCH 1/2] Added _playing flag switching on pause and resume Issue # 13254 --- cocos/audio/win32/MciPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/audio/win32/MciPlayer.cpp b/cocos/audio/win32/MciPlayer.cpp index 85f9ad6833..2d54652cee 100644 --- a/cocos/audio/win32/MciPlayer.cpp +++ b/cocos/audio/win32/MciPlayer.cpp @@ -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; } } From fa02751e45d1ca5955bf857abb788e9f855083ce Mon Sep 17 00:00:00 2001 From: James Windiate Date: Thu, 13 Aug 2015 19:24:41 -0400 Subject: [PATCH 2/2] fixed whitespace --- cocos/audio/win32/MciPlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/audio/win32/MciPlayer.cpp b/cocos/audio/win32/MciPlayer.cpp index 2d54652cee..472455bec9 100644 --- a/cocos/audio/win32/MciPlayer.cpp +++ b/cocos/audio/win32/MciPlayer.cpp @@ -136,7 +136,7 @@ void MciPlayer::Close() void MciPlayer::Pause() { _SendGenericCommand(MCI_PAUSE); - _playing = false; + _playing = false; } void MciPlayer::Resume() @@ -154,7 +154,7 @@ void MciPlayer::Resume() else { _SendGenericCommand(MCI_RESUME); - _playing = true; + _playing = true; } }