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
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
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