C# Класс Accord.DirectSound.WaveFileAudioSource

Read audio samples from a Wave file.

This audio source reads audio samples from Wave files. Internally, it uses the WaveDecoder class to automatically decode Wave files into audio signals.

Наследование: IAudioSource, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

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

Seek ( int frameIndex ) : void

Navigates to a given position within the source.

SignalToStop ( ) : void

Signals the source to stop.

Start ( ) : void

Starts reading from the source.

Stop ( ) : void

Stops the source.

WaitForStop ( ) : void

Blocks the calling thread until the source has stopped.

WaveFileAudioSource ( Stream stream ) : Accord.Audio

Constructs a new Wave file audio source.

WaveFileAudioSource ( string fileName ) : Accord.Audio

Constructs a new Wave file audio source.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Приватные методы

Метод Описание
Free ( ) : void

Free resource.

WorkerThread ( ) : void

Worker thread.

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

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

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

Dispose() защищенный метод

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and /// unmanaged resources; false to release only unmanaged resources.
Результат void

Seek() публичный метод

Navigates to a given position within the source.
public Seek ( int frameIndex ) : void
frameIndex int The frame position to navigate to.
Результат void

SignalToStop() публичный метод

Signals the source to stop.
public SignalToStop ( ) : void
Результат void

Start() публичный метод

Starts reading from the source.
public Start ( ) : void
Результат void

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

Stops the source.
public Stop ( ) : void
Результат void

WaitForStop() публичный метод

Blocks the calling thread until the source has stopped.
public WaitForStop ( ) : void
Результат void

WaveFileAudioSource() публичный метод

Constructs a new Wave file audio source.
public WaveFileAudioSource ( Stream stream ) : Accord.Audio
stream Stream The stream containing a Wave file.
Результат Accord.Audio

WaveFileAudioSource() публичный метод

Constructs a new Wave file audio source.
public WaveFileAudioSource ( string fileName ) : Accord.Audio
fileName string The path for the underlying source.
Результат Accord.Audio