Mercurial > mm7
diff Engine/MMT.cpp @ 2506:9b96a51011fb
for sound
author | Ritor1 |
---|---|
date | Thu, 25 Sep 2014 10:39:49 +0600 |
parents | a77c34acdbc9 |
children | 491f0babd563 |
line wrap: on
line diff
--- a/Engine/MMT.cpp Fri Sep 19 18:03:18 2014 +0600 +++ b/Engine/MMT.cpp Thu Sep 25 10:39:49 2014 +0600 @@ -210,8 +210,8 @@ pGUIWindow2 = 0; pAudioPlayer->StopChannels(-1, -1); - //if (!bNoSound ) - //PlayAudio(L"Sounds\\New_Sounds/Stronghold_Theme.mp3"); + if (!bNoSound ) + PlayAudio(L"Sounds\\New_Sounds/Stronghold_Theme.mp3"); //if (!bNoVideo ) //pVideoPlayer->PlayMovie(L"Anims\\New_Video/3DOLOGO.smk"); @@ -354,7 +354,8 @@ case UIMSG_MMT_MainMenu_MM6: //video //SetCurrentMenuID(MENU_MAIN_MM6); - pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0);//temporarily + alSourcef (mSourceID, AL_GAIN, 0.5f); + pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);//temporarily break; case UIMSG_MMT_MainMenu_MM7: //new button for ΜΜ7 //GUIWindow::Create(495, 172, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnNew, 0); @@ -365,12 +366,14 @@ case UIMSG_MMT_MainMenu_MM8: //video //SetCurrentMenuID(MENU_MAIN_MM8); - pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0);//temporarily + alSourcei (mSourceID, AL_LOOPING, 1); + pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);//temporarily break; case UIMSG_MMT_MainMenu_Continue: //video //SetCurrentMenuID(MENU_MAIN_Continue); - pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0);//temporarily + alSourcef (mSourceID, AL_GAIN, 1.0f); + pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);//temporarily break; case UIMSG_ExitToWindows: GUIWindow::Create(495, 337, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnExit, 0);