1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 22:22:55 +08:00
osu-lazer/osu.Game/Audio/ISamplePlaybackDisabler.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
785 B
C#
Raw Normal View History

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