Expose DrawableRuleset audio adjustments as non-container

This commit is contained in:
Dean Herbert
2021-07-31 15:05:54 +09:00
parent 29328bdf7f
commit 53c901bfa8
3 changed files with 15 additions and 5 deletions

View File

@ -7,7 +7,6 @@ using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Configuration;
using osu.Game.Rulesets.Objects;
@ -82,7 +81,7 @@ namespace osu.Game.Rulesets.Mods
}
if (AffectsHitSounds.Value)
drawableRuleset.AudioContainer.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust);
drawableRuleset.Audio.AddAdjustment(AdjustableProperty.Volume, mainVolumeAdjust);
}
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)