mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
22 lines
764 B
C#
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;
|
|
}
|
|
}
|
|
}
|