diff Media/MediaPlayer.cpp @ 2510:ae2b7048b3eb

alSourcePause
author Ritor1
date Thu, 02 Oct 2014 13:39:42 +0600
parents 491f0babd563
children b36b858a5175
line wrap: on
line diff
--- a/Media/MediaPlayer.cpp	Thu Oct 02 12:23:52 2014 +0600
+++ b/Media/MediaPlayer.cpp	Thu Oct 02 13:39:42 2014 +0600
@@ -1063,8 +1063,10 @@
   if (!this->bPlaying_Movie)
   {
     pEventTimer->Pause();
-	if (pAudioPlayer->hAILRedbook)
-		AIL_redbook_pause(pAudioPlayer->hAILRedbook);
+	if ( use_music_folder )
+      alSourcePause(mSourceID);
+    else if (pAudioPlayer->hAILRedbook)
+	  AIL_redbook_pause(pAudioPlayer->hAILRedbook);
 
 	bStopBeforeSchedule = false;
 	bFirstFrame = false;
@@ -1081,7 +1083,9 @@
   {
     //Prepare();
     pEventTimer->Pause();
-    if (pAudioPlayer->hAILRedbook)
+    if ( use_music_folder )
+      alSourcePause(mSourceID);
+    else if (pAudioPlayer->hAILRedbook)
       AIL_redbook_pause(pAudioPlayer->hAILRedbook);
 
     bStopBeforeSchedule = false;
@@ -1381,8 +1385,13 @@
   bPlaying_Movie = false;
   uMovieType = 0;
   memset(pCurrentMovieName, 0, 0x40);
-  if ( pAudioPlayer->hAILRedbook && !bGameoverLoop )
-    AIL_redbook_resume(pAudioPlayer->hAILRedbook);
+  if ( !bGameoverLoop && pMediaPlayer->current_movie_width == 460)
+  {
+    if ( use_music_folder )
+      alSourcePlay(mSourceID);
+    else if ( pAudioPlayer->hAILRedbook )
+      AIL_redbook_resume(pAudioPlayer->hAILRedbook);
+  }
   pEventTimer->Resume();
 
   pMovie_Track->Release();