C# Class Unosquare.FFmpegMediaElement.AudioRenderer

Represents a calss that renders audio data to speakers via callbacks
Inheritance: IDisposable
Exibir arquivo Open project: bbougot/Popcorn Class Usage Examples

Public Methods

Method Description
AudioRenderer ( ) : NAudio.Wave

Initializes a new instance of the AudioRenderer class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Initialize ( IAudioDataProvider provider, int sampleRate, int channels, int bitsPerSample ) : bool

Initializes the specified provider.

Pause ( ) : void

Pauses the underlying audio device

Play ( ) : void

Plays the underlying audio device

Stop ( ) : void

Stops the underlying audio device

Method Details

AudioRenderer() public method

Initializes a new instance of the AudioRenderer class.
public AudioRenderer ( ) : NAudio.Wave
return NAudio.Wave

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Initialize() public method

Initializes the specified provider.
Wave device already started
public Initialize ( IAudioDataProvider provider, int sampleRate, int channels, int bitsPerSample ) : bool
provider IAudioDataProvider The provider.
sampleRate int The sample rate.
channels int The channels.
bitsPerSample int The bits per sample.
return bool

Pause() public method

Pauses the underlying audio device
Wave device not started
public Pause ( ) : void
return void

Play() public method

Plays the underlying audio device
Wave device not started
public Play ( ) : void
return void

Stop() public method

Stops the underlying audio device
Wave device not started
public Stop ( ) : void
return void