C# 클래스 Tunez.StreamingPlayer

Wrapper around OutputQueue and AudioFileStream to allow streaming of various filetypes
상속: IStreamingPlayer, IDisposable
파일 보기 프로젝트 열기: alanmcgovern/tunez

공개 프로퍼티들

프로퍼티 타입 설명
outputQueue OutputAudioQueue

Private Properties

프로퍼티 타입 설명
AudioPacketDecoded void
AudioPropertyFound void
BeginPlayingAsync Task
CheckStatus void
EmitFinishedEvent void
EnqueueBuffer void
GetOrCreateAudioBuffer AudioBuffer
HandleBufferCompleted void
NeedsBuffer Task
ReportProgressAsync Task
Reset void
TryPause void
TryResume void
WaitForFinished Task
WaitForOutputReady Task

공개 메소드들

메소드 설명
Dispose ( ) : void
PlayAsync ( Stream stream, IProgress monitor, CancellationToken token ) : Task

Begins playing the audio stroed in the supplied stream

StreamingPlayer ( ) : System

보호된 메소드들

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

Cleaning up all the native Resource

비공개 메소드들

메소드 설명
AudioPacketDecoded ( object sender, PacketReceivedEventArgs args ) : void

Saving the decoded Packets to our active Buffer, if the Buffer is full queue it into the OutputQueue and wait until another buffer gets freed up

AudioPropertyFound ( object sender, PropertyFoundEventArgs args ) : void

When a AudioProperty in the fed packets is found this callback is called

BeginPlayingAsync ( Stream stream, IProgress monitor, CancellationTokenSource cts ) : Task
CheckStatus ( AudioFileStreamStatus status ) : void
EmitFinishedEvent ( AudioQueueProperty property ) : void
EnqueueBuffer ( ) : void

Enqueue the active buffer to the OutputQueue

GetOrCreateAudioBuffer ( ) : AudioBuffer
HandleBufferCompleted ( object sender, BufferCompletedEventArgs e ) : void

Is called when a buffer is completly read and can be queued for re-use

NeedsBuffer ( CancellationToken token ) : Task
ReportProgressAsync ( IProgress monitor, CancellationToken token ) : Task
Reset ( ) : void
TryPause ( ) : void
TryResume ( ) : void
WaitForFinished ( CancellationToken token ) : Task
WaitForOutputReady ( CancellationToken token ) : Task

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Cleaning up all the native Resource
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

PlayAsync() 공개 메소드

Begins playing the audio stroed in the supplied stream
public PlayAsync ( Stream stream, IProgress monitor, CancellationToken token ) : Task
stream Stream Stream.
monitor IProgress
token System.Threading.CancellationToken Token.
리턴 Task

StreamingPlayer() 공개 메소드

public StreamingPlayer ( ) : System
리턴 System

프로퍼티 상세

outputQueue 공개적으로 프로퍼티

public OutputAudioQueue outputQueue
리턴 OutputAudioQueue