// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Framework.Audio.Sample { /// /// A which explicitly plays no audio. /// Aimed for scenarios in which a non-null is needed, but one that doesn't necessarily play any sound. /// internal class SampleChannelVirtual : SampleChannel { private volatile bool playing = true; public override bool Playing => playing; protected override void UpdateState() { base.UpdateState(); if (!Looping) Stop(); } public override void Stop() { base.Stop(); playing = false; } } }