mirror of
https://github.com/ppy/osu.git
synced 2026-05-31 01:50:20 +08:00
Merge pull request #35233 from diquoks/quick-fix/sfx-mute-on-restart
Mute SFX when holding restart beatmap bind
This commit is contained in:
@@ -58,11 +58,13 @@ namespace osu.Game.Overlays
|
||||
};
|
||||
|
||||
audio.Tracks.AddAdjustment(AdjustableProperty.Volume, audioVolume);
|
||||
audio.Samples.AddAdjustment(AdjustableProperty.Volume, audioVolume);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
audio?.Tracks.RemoveAdjustment(AdjustableProperty.Volume, audioVolume);
|
||||
audio?.Samples.RemoveAdjustment(AdjustableProperty.Volume, audioVolume);
|
||||
base.Dispose(isDisposing);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user