Files
osu-framework/osu.Framework/Audio/Sample/Sample.cs
2018-04-11 16:34:32 +09:00

22 lines
764 B
C#

// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Audio.Sample
{
public abstract class Sample : AudioComponent
{
public const int DEFAULT_CONCURRENCY = 2;
protected readonly int PlaybackConcurrency;
/// <summary>
/// Construct a new sample.
/// </summary>
/// <param name="playbackConcurrency">How many instances of this sample should be allowed to playback concurrently before stopping the longest playing.</param>
protected Sample(int playbackConcurrency = DEFAULT_CONCURRENCY)
{
PlaybackConcurrency = playbackConcurrency;
}
}
}