A game framework written with osu! in mind.
at master 14 lines 568 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4namespace osu.Framework.Audio.Sample 5{ 6 /// <summary> 7 /// A <see cref="Sample"/> which explicitly plays no audio. 8 /// Aimed for scenarios in which a non-null <see cref="Sample"/> is needed, but one that doesn't necessarily play any sound. 9 /// </summary> 10 public sealed class SampleVirtual : Sample 11 { 12 protected override SampleChannel CreateChannel() => new SampleChannelVirtual(); 13 } 14}