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:
2025-07-01 20:32:02 +02:00
parent 9575518ae5
commit e34d22c8dd
7 changed files with 158 additions and 218 deletions

View File

@@ -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);
}
}
}