diff --git a/osu.Framework.Tests/Audio/SampleBassTest.cs b/osu.Framework.Tests/Audio/SampleBassTest.cs index ed0155b18e2..b0f65d0c6f0 100644 --- a/osu.Framework.Tests/Audio/SampleBassTest.cs +++ b/osu.Framework.Tests/Audio/SampleBassTest.cs @@ -115,5 +115,17 @@ public void TestPlayingUpdatedAfterInlineStop() bass.RunOnAudioThread(() => channel.Stop()); Assert.That(channel.Playing, Is.False); } + + [Test] + public void TestChannelLifetime() + { + channel = sample.Play(); + bass.Update(); + + bass.RunOnAudioThread(() => channel.Stop()); + bass.Update(); + + Assert.That(channel.IsDisposed, Is.True); + } } }