diff GUI/UI/UIPartyCreation.cpp @ 2508:491f0babd563

use_music_folder
author Ritor1
date Thu, 02 Oct 2014 11:52:31 +0600
parents a77c34acdbc9
children c7264ab7132f
line wrap: on
line diff
--- a/GUI/UI/UIPartyCreation.cpp	Thu Sep 25 10:40:16 2014 +0600
+++ b/GUI/UI/UIPartyCreation.cpp	Thu Oct 02 11:52:31 2014 +0600
@@ -20,6 +20,7 @@
 #include "..\../Engine/texts.h"
 
 #include "..\../Engine/mm7_data.h"
+#include "..\../Engine/MMT.h"
 
 
 
@@ -392,7 +393,10 @@
 
   pMessageQueue_50CBD0->Flush();
 
-  pAudioPlayer->SetMusicVolume(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0f);
+  if ( use_music_folder )
+    alSourcef (mSourceID, AL_GAIN, pSoundVolumeLevels[uMusicVolimeMultiplier]);
+  else
+    pAudioPlayer->SetMusicVolume(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0f);
   ++pIcons_LOD->uTexturePacksCount;
   if ( !pIcons_LOD->uNumPrevLoadedFiles )
     pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;