C# 클래스 NAudio.Wave.WasapiOut

Support for playback using Wasapi
상속: IWavePlayer
파일 보기 프로젝트 열기: jishi/Jishi.StreamToSonos 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Dispose

GetPosition ( ) : long

Gets the current position in bytes from the wave output device. (n.b. this is not the same thing as the position within your reader stream)

Init ( IWaveProvider waveProvider ) : void

Initialize for playing the specified wave stream

Pause ( ) : void

Stop playback without flushing buffers

Play ( ) : void

Begin Playback

Stop ( ) : void

Stop playback and flush buffers

WasapiOut ( AudioClientShareMode shareMode, bool useEventSync, int latency ) : System

WASAPI Out using default audio endpoint

WasapiOut ( AudioClientShareMode shareMode, int latency ) : System

WASAPI Out using default audio endpoint

WasapiOut ( MMDevice device, AudioClientShareMode shareMode, bool useEventSync, int latency ) : System

Creates a new WASAPI Output

비공개 메소드들

메소드 설명
FillBuffer ( IWaveProvider playbackProvider, int frameCount ) : void
GetDefaultAudioEndpoint ( ) : MMDevice
PlayThread ( ) : void
RaisePlaybackStopped ( Exception e ) : void

메소드 상세

Dispose() 공개 메소드

Dispose
public Dispose ( ) : void
리턴 void

GetPosition() 공개 메소드

Gets the current position in bytes from the wave output device. (n.b. this is not the same thing as the position within your reader stream)
public GetPosition ( ) : long
리턴 long

Init() 공개 메소드

Initialize for playing the specified wave stream
public Init ( IWaveProvider waveProvider ) : void
waveProvider IWaveProvider IWaveProvider to play
리턴 void

Pause() 공개 메소드

Stop playback without flushing buffers
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Begin Playback
public Play ( ) : void
리턴 void

Stop() 공개 메소드

Stop playback and flush buffers
public Stop ( ) : void
리턴 void

WasapiOut() 공개 메소드

WASAPI Out using default audio endpoint
public WasapiOut ( AudioClientShareMode shareMode, bool useEventSync, int latency ) : System
shareMode AudioClientShareMode ShareMode - shared or exclusive
useEventSync bool true if sync is done with event. false use sleep.
latency int Desired latency in milliseconds
리턴 System

WasapiOut() 공개 메소드

WASAPI Out using default audio endpoint
public WasapiOut ( AudioClientShareMode shareMode, int latency ) : System
shareMode AudioClientShareMode ShareMode - shared or exclusive
latency int Desired latency in milliseconds
리턴 System

WasapiOut() 공개 메소드

Creates a new WASAPI Output
public WasapiOut ( MMDevice device, AudioClientShareMode shareMode, bool useEventSync, int latency ) : System
device NAudio.CoreAudioApi.MMDevice Device to use
shareMode AudioClientShareMode
useEventSync bool true if sync is done with event. false use sleep.
latency int
리턴 System