mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
|
|
using System;
|
||
|
|
using CUETools.Codecs;
|
||
|
|
|
||
|
|
namespace CUETools.Codecs.CoreAudio
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Represents the interface to a device that can play a WaveFile
|
||
|
|
/// </summary>
|
||
|
|
public interface IWavePlayer : IDisposable, IAudioDest
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Begin playback
|
||
|
|
/// </summary>
|
||
|
|
void Play();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Stop playback
|
||
|
|
/// </summary>
|
||
|
|
void Stop();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Pause Playback
|
||
|
|
/// </summary>
|
||
|
|
void Pause();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Current playback state
|
||
|
|
/// </summary>
|
||
|
|
PlaybackState PlaybackState { get; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// The volume 1.0 is full scale
|
||
|
|
/// </summary>
|
||
|
|
float Volume { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Indicates that playback has gone into a stopped state due to
|
||
|
|
/// reaching the end of the input stream
|
||
|
|
/// </summary>
|
||
|
|
event EventHandler PlaybackStopped;
|
||
|
|
}
|
||
|
|
}
|