mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
30 lines
647 B
C#
30 lines
647 B
C#
|
|
namespace RedBookPlayer.Models.Hardware
|
||
|
|
{
|
||
|
|
public interface IAudioBackend
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Pauses the audio playback
|
||
|
|
/// </summary>
|
||
|
|
void Pause();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Starts the playback.
|
||
|
|
/// </summary>
|
||
|
|
void Play();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Stops the audio playback
|
||
|
|
/// </summary>
|
||
|
|
void Stop();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Get the current playback state
|
||
|
|
/// </summary>
|
||
|
|
PlayerState GetPlayerState();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Set the new volume value
|
||
|
|
/// </summary>
|
||
|
|
void SetVolume(float volume);
|
||
|
|
}
|
||
|
|
}
|