Commit 86771e28 authored by nanahira's avatar nanahira

Merge branch 'master' into server

parents ba8be091 39dc2fd4
......@@ -52,6 +52,7 @@ void SoundManager::PlaySoundEffect(int sound) {
#ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableSound->isChecked())
return;
engineSound->setSoundVolume(mainGame->gameConf.sound_volume);
switch(sound) {
case SOUND_SUMMON: {
engineSound->play2D("./sound/summon.wav");
......@@ -180,7 +181,6 @@ void SoundManager::PlaySoundEffect(int sound) {
default:
break;
}
engineSound->setSoundVolume(mainGame->gameConf.sound_volume);
#endif
}
void SoundManager::PlayDialogSound(irr::gui::IGUIElement * element) {
......@@ -212,8 +212,8 @@ void SoundManager::PlayMusic(char* song, bool loop) {
return;
if(!engineMusic->isCurrentlyPlaying(song)) {
engineMusic->stopAllSounds();
soundBGM = engineMusic->play2D(song, loop, false, true);
engineMusic->setSoundVolume(mainGame->gameConf.music_volume);
soundBGM = engineMusic->play2D(song, loop, false, true);
}
#endif
}
......@@ -257,8 +257,8 @@ void SoundManager::PlayCustomSound(char* SoundName) {
#ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableSound->isChecked())
return;
engineSound->play2D(SoundName);
engineSound->setSoundVolume(mainGame->gameConf.sound_volume);
engineSound->play2D(SoundName);
#endif
}
void SoundManager::StopBGM() {
......
Subproject commit 0ba949b0cbeb78c619bb1179d3371ff1c108f808
Subproject commit 8394ad378997ed3ae8d262acd00c32d21ba11eb1
Subproject commit 7e2e5d4d4eaf792efb65acd5c426ecb1eb4be6f8
Subproject commit 93ac2a46d32b5849c87aa7ee8241ea774cb9e1ef
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment