1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Fix audio being dimmed on preview tracks (#5113)

Fix audio being dimmed on preview tracks
This commit is contained in:
Dean Herbert 2019-06-22 00:44:23 +09:00 committed by GitHub
commit c34a7dd255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,6 @@ using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Bindables;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.IO.Stores;
using osu.Game.Beatmaps;
@ -26,7 +25,7 @@ namespace osu.Game.Audio
private TrackManagerPreviewTrack current;
[BackgroundDependencyLoader]
private void load(AudioManager audio, FrameworkConfigManager config)
private void load(AudioManager audio)
{
// this is a temporary solution to get around muting ourselves.
// todo: update this once we have a BackgroundTrackManager or similar.
@ -36,8 +35,6 @@ namespace osu.Game.Audio
trackStore.AddAdjustment(AdjustableProperty.Volume, audio.VolumeTrack);
this.audio = audio;
config.BindWith(FrameworkSetting.VolumeMusic, trackStore.Volume);
}
/// <summary>