Updated and fixed audio

This commit is contained in:
2025-12-25 19:41:19 +01:00
parent 68b35ea57b
commit 735e966608
8 changed files with 75 additions and 52 deletions

View File

@ -221,7 +221,7 @@ void OptionsState::toggleFullscreen() {
}
void OptionsState::toggleMusic() {
if (auto sys = ::AudioManager::get()) sys->toggleMute();
if (auto sys = AudioManager::get()) sys->toggleMute();
// If muted, music is disabled. If not muted, music is enabled.
// Note: Audio::instance().isMuted() returns true if muted.
// But Audio class doesn't expose isMuted directly in header usually?