We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3afcf commit 630ea12Copy full SHA for 630ea12
osu.Framework/Audio/Sample/SampleChannelBass.cs
@@ -1,6 +1,7 @@
1
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
2
// See the LICENCE file in the repository root for full licence text.
3
4
+using System;
5
using ManagedBass;
6
using osu.Framework.Audio.Mixing.Bass;
7
using osu.Framework.Audio.Track;
@@ -117,6 +118,9 @@ protected override void UpdateState()
117
118
119
public override void Play()
120
{
121
+ // Check if this channel is disposed first to not set enqueuedPlaybackStart to true, as it makes Playing true.
122
+ ObjectDisposedException.ThrowIf(IsDisposed, this);
123
+
124
userRequestedPlay = true;
125
126
// Pin Playing and IsAlive to true so that the channel isn't killed by the next update. This is only reset after playback is started.
0 commit comments