C# Class Translate.Services.Audio.WaveMediaStreamSource

A Media Stream Source implemented to play WAVE files
Inheritance: System.Windows.Media.MediaStreamSource, IDisposable
Afficher le fichier Open project: nikhilk/silverlightfx

Méthodes publiques

Méthode Description
Dispose ( ) : void

Implement the Dispose method to release the resources

WaveMediaStreamSource ( Stream stream ) : System

Initializes a new instance of the WaveMediaStreamSource class.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
AlignUp ( int a, int b ) : int

Helper function to align a block

Method Details

CloseMedia() protected méthode

Close the media. Release the resources.
protected CloseMedia ( ) : void
Résultat void

Dispose() public méthode

Implement the Dispose method to release the resources
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Implementation of the IDisposable pattern
protected Dispose ( bool disposing ) : void
disposing bool Are we being destroyed
Résultat void

GetDiagnosticAsync() protected méthode

Not implemented
protected GetDiagnosticAsync ( MediaStreamSourceDiagnosticKind diagnosticKind ) : void
diagnosticKind MediaStreamSourceDiagnosticKind The diagnostic kind
Résultat void

GetSampleAsync() protected méthode

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

OpenMediaAsync() protected méthode

Open the media. Create the structures.
protected OpenMediaAsync ( ) : void
Résultat void

SeekAsync() protected méthode

Called when asked to seek to a new position
protected SeekAsync ( long seekToTime ) : void
seekToTime long the time to seek to
Résultat void

SwitchMediaStreamAsync() protected méthode

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
Résultat void

WaveMediaStreamSource() public méthode

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