C# 클래스 Accord.DirectSound.AudioOutputDevice

Audio output device for local audio playback (i.e. a sound card port).

This audio output sends audio data to a local output device such as a sound card. The audio is reproduced using DirectSound through SlimDX.

For instructions on how to list output devices, please see the AudioDeviceCollection documentation page.

상속: IAudioOutput, IDisposable
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
AudioOutputDevice ( System.Guid device, IntPtr owner, int samplingRate, int channels ) : Accord.Audio

Constructs a new Audio Output Device.

AudioOutputDevice ( IntPtr owner, int samplingRate, int channels ) : Accord.Audio

Constructs a new Audio Output Device.

Dispose ( ) : void

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

Play ( ) : void

Starts playing the current buffer.

Play ( float samples ) : void

Starts playing the current buffer.

SignalToStop ( ) : void

Signals audio output to stop its work.

Signals audio output to stop its background thread, stop to ask for new frames and free resources.

Stop ( ) : void

Stops playing the current buffer.

WaitForStop ( ) : void

Wait for audio output has stopped.

Waits for output stopping after it was signaled to stop using SignalToStop method.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

비공개 메소드들

메소드 설명
OnFramePlayingStarted ( PlayFrameEventArgs e ) : void
OnStopped ( EventArgs e ) : void
WorkerThread ( ) : void

Worker thread.

메소드 상세

AudioOutputDevice() 공개 메소드

Constructs a new Audio Output Device.
public AudioOutputDevice ( System.Guid device, IntPtr owner, int samplingRate, int channels ) : Accord.Audio
device System.Guid Global identifier of the audio output device.
owner System.IntPtr The owner window handle.
samplingRate int The sampling rate of the device.
channels int The number of channels of the device.
리턴 Accord.Audio

AudioOutputDevice() 공개 메소드

Constructs a new Audio Output Device.
public AudioOutputDevice ( IntPtr owner, int samplingRate, int channels ) : Accord.Audio
owner System.IntPtr The owner window handle.
samplingRate int The sampling rate of the device.
channels int The number of channels of the device.
리턴 Accord.Audio

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

Play() 공개 메소드

Starts playing the current buffer.
public Play ( ) : void
리턴 void

Play() 공개 메소드

Starts playing the current buffer.
public Play ( float samples ) : void
samples float
리턴 void

SignalToStop() 공개 메소드

Signals audio output to stop its work.
Signals audio output to stop its background thread, stop to ask for new frames and free resources.
public SignalToStop ( ) : void
리턴 void

Stop() 공개 메소드

Stops playing the current buffer.
public Stop ( ) : void
리턴 void

WaitForStop() 공개 메소드

Wait for audio output has stopped.
Waits for output stopping after it was signaled to stop using SignalToStop method.
public WaitForStop ( ) : void
리턴 void