Updated and fixed audio
This commit is contained in:
@ -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?
|
||||
|
||||
Reference in New Issue
Block a user