C# Class Unosquare.FFmpegMediaElement.AudioRenderer

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

Méthodes publiques

Méthode 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 méthode

Initializes a new instance of the AudioRenderer class.
public AudioRenderer ( ) : NAudio.Wave
Résultat NAudio.Wave

Dispose() public méthode

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

Initialize() public méthode

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.
Résultat bool

Pause() public méthode

Pauses the underlying audio device
Wave device not started
public Pause ( ) : void
Résultat void

Play() public méthode

Plays the underlying audio device
Wave device not started
public Play ( ) : void
Résultat void

Stop() public méthode

Stops the underlying audio device
Wave device not started
public Stop ( ) : void
Résultat void