C# 클래스 Translate.Services.Audio.WaveMediaStreamSource

A Media Stream Source implemented to play WAVE files
상속: System.Windows.Media.MediaStreamSource, IDisposable
파일 보기 프로젝트 열기: nikhilk/silverlightfx

공개 메소드들

메소드 설명
Dispose ( ) : void

Implement the Dispose method to release the resources

WaveMediaStreamSource ( Stream stream ) : System

Initializes a new instance of the WaveMediaStreamSource class.

보호된 메소드들

메소드 설명
CloseMedia ( ) : void

Close the media. Release the resources.

Dispose ( bool disposing ) : void

Implementation of the IDisposable pattern

GetDiagnosticAsync ( MediaStreamSourceDiagnosticKind diagnosticKind ) : void

Not implemented

GetSampleAsync ( MediaStreamType mediaStreamType ) : void

Return the next sample requested

OpenMediaAsync ( ) : void

Open the media. Create the structures.

SeekAsync ( long seekToTime ) : void

Called when asked to seek to a new position

SwitchMediaStreamAsync ( System.Windows.Media.MediaStreamDescription mediaStreamDescription ) : void

Stream media stream. Not implemented

비공개 메소드들

메소드 설명
AlignUp ( int a, int b ) : int

Helper function to align a block

메소드 상세

CloseMedia() 보호된 메소드

Close the media. Release the resources.
protected CloseMedia ( ) : void
리턴 void

Dispose() 공개 메소드

Implement the Dispose method to release the resources
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Implementation of the IDisposable pattern
protected Dispose ( bool disposing ) : void
disposing bool Are we being destroyed
리턴 void

GetDiagnosticAsync() 보호된 메소드

Not implemented
protected GetDiagnosticAsync ( MediaStreamSourceDiagnosticKind diagnosticKind ) : void
diagnosticKind MediaStreamSourceDiagnosticKind The diagnostic kind
리턴 void

GetSampleAsync() 보호된 메소드

Return the next sample requested
protected GetSampleAsync ( MediaStreamType mediaStreamType ) : void
mediaStreamType MediaStreamType The stream type that we are getting a sample for
리턴 void

OpenMediaAsync() 보호된 메소드

Open the media. Create the structures.
protected OpenMediaAsync ( ) : void
리턴 void

SeekAsync() 보호된 메소드

Called when asked to seek to a new position
protected SeekAsync ( long seekToTime ) : void
seekToTime long the time to seek to
리턴 void

SwitchMediaStreamAsync() 보호된 메소드

Stream media stream. Not implemented
protected SwitchMediaStreamAsync ( System.Windows.Media.MediaStreamDescription mediaStreamDescription ) : void
mediaStreamDescription System.Windows.Media.MediaStreamDescription The mediaStreamDescription that we want to switch to
리턴 void

WaveMediaStreamSource() 공개 메소드

Initializes a new instance of the WaveMediaStreamSource class.
public WaveMediaStreamSource ( Stream stream ) : System
stream Stream The stream the will contain the data to playback
리턴 System