2020-09-29 03:45:20 +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
|
|
|
|
|
2022-05-07 14:23:30 +00:00
|
|
|
using osu.Framework.Allocation;
|
2020-09-29 03:45:20 +00:00
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Game.Skinning;
|
|
|
|
|
2022-05-07 14:17:23 +00:00
|
|
|
namespace osu.Game.Audio
|
2020-09-29 03:45:20 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Allows a component to disable sample playback dynamically as required.
|
2022-05-07 14:17:23 +00:00
|
|
|
/// Automatically handled by <see cref="PausableSkinnableSound"/>.
|
2022-05-07 14:35:34 +00:00
|
|
|
/// May also be manually handled locally to particular components.
|
2020-09-29 03:45:20 +00:00
|
|
|
/// </summary>
|
2022-05-07 14:23:30 +00:00
|
|
|
[Cached]
|
2020-09-29 03:45:20 +00:00
|
|
|
public interface ISamplePlaybackDisabler
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Whether sample playback should be disabled (or paused for looping samples).
|
|
|
|
/// </summary>
|
|
|
|
IBindable<bool> SamplePlaybackDisabled { get; }
|
|
|
|
}
|
|
|
|
}
|