C# 클래스 NAudio.Wave.WaveOut

Represents a wave out device
상속: IWavePlayer
파일 보기 프로젝트 열기: jishi/Jishi.StreamToSonos 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Closes this WaveOut device

GetCapabilities ( int devNumber ) : NAudio.Wave.WaveOutCapabilities

Retrieves the capabilities of a waveOut device

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 - it calls directly into waveOutGetPosition)

Init ( IWaveProvider waveProvider ) : void

Initialises the WaveOut device

Pause ( ) : void

Pause the audio

Play ( ) : void

Start playing the audio from the WaveStream

Resume ( ) : void

Resume playing after a pause from the same position

Stop ( ) : void

Stop and reset the WaveOut device

WaveOut ( ) : System

Creates a default WaveOut device Will use window callbacks if called from a GUI thread, otherwise function callbacks

WaveOut ( IntPtr windowHandle ) : System

Creates a WaveOut device using the specified window handle for callbacks

WaveOut ( NAudio.Wave.WaveCallbackInfo callbackInfo ) : System

Opens a WaveOut device

보호된 메소드들

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

Closes the WaveOut device and disposes of buffers

비공개 메소드들

메소드 설명
Callback ( IntPtr hWaveOut, NAudio.Wave.WaveInterop uMsg, IntPtr dwInstance, NAudio.Wave.WaveHeader wavhdr, IntPtr dwReserved ) : void
EnqueueBuffers ( ) : void
RaisePlaybackStoppedEvent ( Exception e ) : void

메소드 상세

Dispose() 공개 메소드

Closes this WaveOut device
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Closes the WaveOut device and disposes of buffers
protected Dispose ( bool disposing ) : void
disposing bool True if called from Dispose
리턴 void

GetCapabilities() 공개 정적인 메소드

Retrieves the capabilities of a waveOut device
public static GetCapabilities ( int devNumber ) : NAudio.Wave.WaveOutCapabilities
devNumber int Device to test
리턴 NAudio.Wave.WaveOutCapabilities

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 - it calls directly into waveOutGetPosition)
public GetPosition ( ) : long
리턴 long

Init() 공개 메소드

Initialises the WaveOut device
public Init ( IWaveProvider waveProvider ) : void
waveProvider IWaveProvider WaveProvider to play
리턴 void

Pause() 공개 메소드

Pause the audio
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Start playing the audio from the WaveStream
public Play ( ) : void
리턴 void

Resume() 공개 메소드

Resume playing after a pause from the same position
public Resume ( ) : void
리턴 void

Stop() 공개 메소드

Stop and reset the WaveOut device
public Stop ( ) : void
리턴 void

WaveOut() 공개 메소드

Creates a default WaveOut device Will use window callbacks if called from a GUI thread, otherwise function callbacks
public WaveOut ( ) : System
리턴 System

WaveOut() 공개 메소드

Creates a WaveOut device using the specified window handle for callbacks
public WaveOut ( IntPtr windowHandle ) : System
windowHandle System.IntPtr A valid window handle
리턴 System

WaveOut() 공개 메소드

Opens a WaveOut device
public WaveOut ( NAudio.Wave.WaveCallbackInfo callbackInfo ) : System
callbackInfo NAudio.Wave.WaveCallbackInfo
리턴 System