Mercurial > mm7
comparison Media/MediaPlayer.cpp @ 2510:ae2b7048b3eb
alSourcePause
author | Ritor1 |
---|---|
date | Thu, 02 Oct 2014 13:39:42 +0600 |
parents | 491f0babd563 |
children | b36b858a5175 |
comparison
equal
deleted
inserted
replaced
2509:fc5e83bbafd1 | 2510:ae2b7048b3eb |
---|---|
1061 void MPlayer::OpenFullscreenMovie(const char *pFilename, unsigned int bLoop/*, int ScreenSizeFlag*/) | 1061 void MPlayer::OpenFullscreenMovie(const char *pFilename, unsigned int bLoop/*, int ScreenSizeFlag*/) |
1062 { | 1062 { |
1063 if (!this->bPlaying_Movie) | 1063 if (!this->bPlaying_Movie) |
1064 { | 1064 { |
1065 pEventTimer->Pause(); | 1065 pEventTimer->Pause(); |
1066 if (pAudioPlayer->hAILRedbook) | 1066 if ( use_music_folder ) |
1067 AIL_redbook_pause(pAudioPlayer->hAILRedbook); | 1067 alSourcePause(mSourceID); |
1068 else if (pAudioPlayer->hAILRedbook) | |
1069 AIL_redbook_pause(pAudioPlayer->hAILRedbook); | |
1068 | 1070 |
1069 bStopBeforeSchedule = false; | 1071 bStopBeforeSchedule = false; |
1070 bFirstFrame = false; | 1072 bFirstFrame = false; |
1071 this->bLoopPlaying = bLoop; | 1073 this->bLoopPlaying = bLoop; |
1072 LoadMovie(pFilename); | 1074 LoadMovie(pFilename); |
1079 { | 1081 { |
1080 if (!this->bPlaying_Movie) | 1082 if (!this->bPlaying_Movie) |
1081 { | 1083 { |
1082 //Prepare(); | 1084 //Prepare(); |
1083 pEventTimer->Pause(); | 1085 pEventTimer->Pause(); |
1084 if (pAudioPlayer->hAILRedbook) | 1086 if ( use_music_folder ) |
1087 alSourcePause(mSourceID); | |
1088 else if (pAudioPlayer->hAILRedbook) | |
1085 AIL_redbook_pause(pAudioPlayer->hAILRedbook); | 1089 AIL_redbook_pause(pAudioPlayer->hAILRedbook); |
1086 | 1090 |
1087 bStopBeforeSchedule = false; | 1091 bStopBeforeSchedule = false; |
1088 bFirstFrame = false; | 1092 bFirstFrame = false; |
1089 | 1093 |
1379 void MPlayer::Unload() | 1383 void MPlayer::Unload() |
1380 { | 1384 { |
1381 bPlaying_Movie = false; | 1385 bPlaying_Movie = false; |
1382 uMovieType = 0; | 1386 uMovieType = 0; |
1383 memset(pCurrentMovieName, 0, 0x40); | 1387 memset(pCurrentMovieName, 0, 0x40); |
1384 if ( pAudioPlayer->hAILRedbook && !bGameoverLoop ) | 1388 if ( !bGameoverLoop && pMediaPlayer->current_movie_width == 460) |
1385 AIL_redbook_resume(pAudioPlayer->hAILRedbook); | 1389 { |
1390 if ( use_music_folder ) | |
1391 alSourcePlay(mSourceID); | |
1392 else if ( pAudioPlayer->hAILRedbook ) | |
1393 AIL_redbook_resume(pAudioPlayer->hAILRedbook); | |
1394 } | |
1386 pEventTimer->Resume(); | 1395 pEventTimer->Resume(); |
1387 | 1396 |
1388 pMovie_Track->Release(); | 1397 pMovie_Track->Release(); |
1389 delete pMovie_Track; | 1398 delete pMovie_Track; |
1390 pMovie_Track = nullptr; | 1399 pMovie_Track = nullptr; |