Interface IWavePlayer
Represents the interface to a device that can play a WaveFile
public interface IWavePlayer : IDisposable
- Inherited Members
- Extension Methods
Properties
OutputWaveFormat
The WaveFormat this device is using for playback
WaveFormat OutputWaveFormat { get; }
Property Value
PlaybackState
Current playback state
PlaybackState PlaybackState { get; }
Property Value
Volume
The volume 1.0f is full scale Note that not all implementations necessarily support volume changes
float Volume { get; set; }
Property Value
Methods
Init(IWaveProvider)
Initialise playback
void Init(IWaveProvider waveProvider)
Parameters
waveProvider
IWaveProviderThe waveprovider to be played
Pause()
Pause Playback
void Pause()
Play()
Begin playback
void Play()
Stop()
Stop playback
void Stop()
Events
PlaybackStopped
Indicates that playback has gone into a stopped state due to reaching the end of the input stream or an error has been encountered during playback
event EventHandler<StoppedEventArgs> PlaybackStopped