1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 07:53:38 +08:00
osu-lazer/osu.Game/Skinning/IPooledSampleProvider.cs

21 lines
753 B
C#
Raw Normal View History

2020-11-19 18:52:34 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Audio;
namespace osu.Game.Skinning
{
2020-11-30 17:40:22 +08:00
/// <summary>
/// Provides pooled samples to be used by <see cref="SkinnableSound"/>s.
/// </summary>
internal interface IPooledSampleProvider
2020-11-19 18:52:34 +08:00
{
2020-11-30 17:40:22 +08:00
/// <summary>
/// Retrieves a <see cref="PoolableSkinnableSample"/> from a pool.
/// </summary>
2020-12-01 02:43:20 +08:00
/// <param name="sampleInfo">The <see cref="SampleInfo"/> describing the sample to retrieve.</param>
2020-11-30 17:40:22 +08:00
/// <returns>The <see cref="PoolableSkinnableSample"/>.</returns>
PoolableSkinnableSample? GetPooledSample(ISampleInfo sampleInfo);
2020-11-19 18:52:34 +08:00
}
}