File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
osu.Framework/Audio/Sample Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) ppy Pty Ltd <[email protected] >. Licensed under the MIT Licence.
2
2
// See the LICENCE file in the repository root for full licence text.
3
3
4
+ using System ;
4
5
using ManagedBass ;
5
6
using osu . Framework . Audio . Mixing . Bass ;
6
7
using osu . Framework . Audio . Track ;
@@ -117,6 +118,9 @@ protected override void UpdateState()
117
118
118
119
public override void Play ( )
119
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
+
120
124
userRequestedPlay = true ;
121
125
122
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.
You can’t perform that action at this time.
0 commit comments