44using System ;
55using ManagedBass ;
66using ManagedBass . Mix ;
7- using osu . Framework . Allocation ;
87using osu . Framework . Audio ;
9- using osu . Framework . Bindables ;
108using osu . Framework . Graphics . Containers ;
119using osu . Framework . Graphics . Shapes ;
1210using osu . Framework . Graphics . Sprites ;
@@ -30,7 +28,6 @@ public partial class AudioChannelDisplay : CompositeDrawable
3028 private float maxPeak = float . MinValue ;
3129 private double lastMaxPeakTime ;
3230 private readonly bool isOutputChannel ;
33- private IBindable < bool > usingGlobalMixer = null ! ;
3431
3532 public AudioChannelDisplay ( int channelHandle , bool isOutputChannel = false )
3633 {
@@ -103,22 +100,13 @@ public AudioChannelDisplay(int channelHandle, bool isOutputChannel = false)
103100 } ;
104101 }
105102
106- [ BackgroundDependencyLoader ]
107- private void load ( AudioManager audioManager )
108- {
109- usingGlobalMixer = audioManager . UsingGlobalMixer . GetBoundCopy ( ) ;
110- }
111-
112103 protected override void Update ( )
113104 {
114105 base . Update ( ) ;
115106
116107 float [ ] levels = new float [ 2 ] ;
117108
118- if ( isOutputChannel && ! usingGlobalMixer . Value )
119- Bass . ChannelGetLevel ( ChannelHandle , levels , 1 / 1000f * sample_window , LevelRetrievalFlags . Stereo ) ;
120- else
121- BassMix . ChannelGetLevel ( ChannelHandle , levels , 1 / 1000f * sample_window , LevelRetrievalFlags . Stereo ) ;
109+ BassMix . ChannelGetLevel ( ChannelHandle , levels , 1 / 1000f * sample_window , LevelRetrievalFlags . Stereo ) ;
122110
123111 float curPeakL = levels [ 0 ] ;
124112 float curPeakR = levels [ 1 ] ;
0 commit comments