C# 클래스 NAudio.Wave.WaveOutEvent

Alternative WaveOut class, making use of the Event callback
상속: IWavePlayer
파일 보기 프로젝트 열기: jishi/Jishi.StreamToSonos 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CloseWaveOut void
DisposeBuffers void
DoPlayback void
PlaybackThread void
RaisePlaybackStoppedEvent void
Resume void

공개 메소드들

메소드 설명
Dispose ( ) : void

Closes this 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

Stop ( ) : void

Stop and reset the WaveOut device

WaveOutEvent ( ) : System

Opens a WaveOut device

보호된 메소드들

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

Closes the WaveOut device and disposes of buffers

비공개 메소드들

메소드 설명
CloseWaveOut ( ) : void
DisposeBuffers ( ) : void
DoPlayback ( ) : void
PlaybackThread ( ) : void
RaisePlaybackStoppedEvent ( Exception e ) : void
Resume ( ) : void

Resume playing after a pause from the same position

메소드 상세

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

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

Stop() 공개 메소드

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

WaveOutEvent() 공개 메소드

Opens a WaveOut device
public WaveOutEvent ( ) : System
리턴 System