diff --git a/osu.Framework.Tests/Visual/Audio/TestSceneSampleChannels.cs b/osu.Framework.Tests/Visual/Audio/TestSceneSampleChannels.cs index 2374b7edce..11e53e3f5f 100644 --- a/osu.Framework.Tests/Visual/Audio/TestSceneSampleChannels.cs +++ b/osu.Framework.Tests/Visual/Audio/TestSceneSampleChannels.cs @@ -113,13 +113,20 @@ public void TestPlayLoopingSample() } [Test] - public void TestTogglePlaying() + public void TestTogglePlayingManualFree() { SampleChannel channel = null; - AddStep("play sample", () => channel = sample.Play()); + AddStep("play sample", () => + { + channel = sample.GetChannel(); + channel.ManualFree = true; + channel.Play(); + }); + AddStep("stop channel", () => channel.Stop()); AddStep("start channel", () => channel.Play()); AddAssert("still playing", () => channel.Playing); + AddStep("dispose channel", () => channel.Dispose()); } [Test]