jail_audio: ultima versió
Audio: separació de sons per canals Game: el fade de so de game over ja no afecta al so de la UI (no funciona o no ho faig be)
This commit is contained in:
@@ -321,7 +321,7 @@ void Game::updateGameStateGameOver()
|
||||
if (Options::audio.enabled)
|
||||
{
|
||||
const float VOL = static_cast<float>(64 * (100 - fade_out_->getValue())) / 100.0f;
|
||||
Audio::get()->setSoundVolume(static_cast<int>(VOL));
|
||||
Audio::get()->setSoundVolume(static_cast<int>(VOL), Audio::Group::GAME);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -341,7 +341,7 @@ void Game::updateGameStateGameOver()
|
||||
if (Options::audio.enabled)
|
||||
{
|
||||
Audio::get()->stopAllSounds();
|
||||
Audio::get()->setSoundVolume(Options::audio.sound.volume);
|
||||
Audio::get()->setSoundVolume(Options::audio.sound.volume, Audio::Group::GAME);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user