Mercurial > mm7
comparison Engine/MMT.cpp @ 2508:491f0babd563
use_music_folder
author | Ritor1 |
---|---|
date | Thu, 02 Oct 2014 11:52:31 +0600 |
parents | 9b96a51011fb |
children | fc5e83bbafd1 |
comparison
equal
deleted
inserted
replaced
2507:6dcc6e8dd041 | 2508:491f0babd563 |
---|---|
82 #endif | 82 #endif |
83 if (!use_MMT) | 83 if (!use_MMT) |
84 { | 84 { |
85 if (!bNoSound && pAudioPlayer->hAILRedbook ) | 85 if (!bNoSound && pAudioPlayer->hAILRedbook ) |
86 { | 86 { |
87 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0)); | 87 if ( use_music_folder ) |
88 AIL_redbook_stop(pAudioPlayer->hAILRedbook); | 88 { |
89 AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS); | 89 PlayAudio(L"Music\\14.mp3"); |
90 AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS); | 90 alSourcef (mSourceID, AL_GAIN, pSoundVolumeLevels[uMusicVolimeMultiplier]); |
91 } | |
92 else | |
93 { | |
94 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0)); | |
95 AIL_redbook_stop(pAudioPlayer->hAILRedbook); | |
96 AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS); | |
97 AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS); | |
98 } | |
91 } | 99 } |
92 } | 100 } |
93 bGameoverLoop = 0; | 101 bGameoverLoop = 0; |
94 } | 102 } |
95 | 103 |
344 | 352 |
345 if ( pMessageQueue_50CBD0->uNumMessages ) | 353 if ( pMessageQueue_50CBD0->uNumMessages ) |
346 { | 354 { |
347 do | 355 do |
348 { | 356 { |
349 | |
350 pMessageQueue_50CBD0->PopMessage(&pUIMessageType, &pParam, &pParam2); | 357 pMessageQueue_50CBD0->PopMessage(&pUIMessageType, &pParam, &pParam2); |
351 | 358 |
352 switch (pUIMessageType) | 359 switch (pUIMessageType) |
353 { | 360 { |
354 case UIMSG_MMT_MainMenu_MM6: | 361 case UIMSG_MMT_MainMenu_MM6: |