Add multiple audio backend framework

This commit is contained in:
Matt Nadareski
2021-10-04 21:50:44 -07:00
parent 0b060efd4a
commit 93a38ec9e9
6 changed files with 210 additions and 9 deletions

View File

@@ -0,0 +1,30 @@
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);
}
}