2020-11-19 10:52:34 +00: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.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-11-19 10:52:34 +00:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
using osu.Game.Audio;
|
|
|
|
|
|
|
|
namespace osu.Game.Skinning
|
|
|
|
{
|
2020-11-30 09:40:22 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Provides pooled samples to be used by <see cref="SkinnableSound"/>s.
|
|
|
|
/// </summary>
|
|
|
|
internal interface IPooledSampleProvider
|
2020-11-19 10:52:34 +00:00
|
|
|
{
|
2020-11-30 09:40:22 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Retrieves a <see cref="PoolableSkinnableSample"/> from a pool.
|
|
|
|
/// </summary>
|
2020-11-30 18:43:20 +00:00
|
|
|
/// <param name="sampleInfo">The <see cref="SampleInfo"/> describing the sample to retrieve.</param>
|
2020-11-30 09:40:22 +00:00
|
|
|
/// <returns>The <see cref="PoolableSkinnableSample"/>.</returns>
|
2020-11-19 10:52:34 +00:00
|
|
|
[CanBeNull]
|
|
|
|
PoolableSkinnableSample GetPooledSample(ISampleInfo sampleInfo);
|
|
|
|
}
|
|
|
|
}
|