15 lines
454 B
C#
15 lines
454 B
C#
namespace ytLive.Services.Audio;
|
|
|
|
/// <summary>Seam over the TRAX background-music player (<see cref="MusicPlayer"/>) so the
|
|
/// toggle/status-light logic is testable without a real audio device.</summary>
|
|
public interface ITraxPlayer : IDisposable
|
|
{
|
|
event Action<Exception?>? PlaybackEnded;
|
|
string? TrackName { get; }
|
|
bool IsPlaying { get; }
|
|
float LocalGain { get; set; }
|
|
void Load(string path);
|
|
void Play();
|
|
void Pause();
|
|
}
|