Mercurial > mm7
diff Engine/MMT.cpp @ 2508:491f0babd563
use_music_folder
author | Ritor1 |
---|---|
date | Thu, 02 Oct 2014 11:52:31 +0600 |
parents | 9b96a51011fb |
children | fc5e83bbafd1 |
line wrap: on
line diff
--- a/Engine/MMT.cpp Thu Sep 25 10:40:16 2014 +0600 +++ b/Engine/MMT.cpp Thu Oct 02 11:52:31 2014 +0600 @@ -84,10 +84,18 @@ { if (!bNoSound && pAudioPlayer->hAILRedbook ) { - pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0)); - AIL_redbook_stop(pAudioPlayer->hAILRedbook); - AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS); - AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS); + if ( use_music_folder ) + { + PlayAudio(L"Music\\14.mp3"); + alSourcef (mSourceID, AL_GAIN, pSoundVolumeLevels[uMusicVolimeMultiplier]); + } + else + { + pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0)); + AIL_redbook_stop(pAudioPlayer->hAILRedbook); + AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS); + AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS); + } } } bGameoverLoop = 0; @@ -346,7 +354,6 @@ { do { - pMessageQueue_50CBD0->PopMessage(&pUIMessageType, &pParam, &pParam2); switch (pUIMessageType)