C# Класс Unosquare.FFmpegMediaElement.AudioRenderer

Represents a calss that renders audio data to speakers via callbacks
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AudioRenderer() публичный Метод

Initializes a new instance of the AudioRenderer class.
public AudioRenderer ( ) : NAudio.Wave
Результат NAudio.Wave

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Initialize() публичный Метод

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.
Результат bool

Pause() публичный Метод

Pauses the underlying audio device
Wave device not started
public Pause ( ) : void
Результат void

Play() публичный Метод

Plays the underlying audio device
Wave device not started
public Play ( ) : void
Результат void

Stop() публичный Метод

Stops the underlying audio device
Wave device not started
public Stop ( ) : void
Результат void