Table of Contents

Interface IWavePlayer

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

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

WaveFormat

PlaybackState

Current playback state

PlaybackState PlaybackState { get; }

Property Value

PlaybackState

Volume

The volume 1.0f is full scale Note that not all implementations necessarily support volume changes

float Volume { get; set; }

Property Value

float

Methods

Init(IWaveProvider)

Initialise playback

void Init(IWaveProvider waveProvider)

Parameters

waveProvider IWaveProvider

The 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

Event Type

EventHandler<StoppedEventArgs>