C# Класс Translate.Services.Audio.WaveMediaStreamSource

A Media Stream Source implemented to play WAVE files
Наследование: System.Windows.Media.MediaStreamSource, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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