C# 클래스 OpenSyno.Services.AudioRenderingService

상속: IAudioRenderingService, IDisposable
파일 보기 프로젝트 열기: salfab/open-syno

공개 메소드들

메소드 설명
AudioRenderingService ( IAudioStationSession audioStationSession ) : System
BufferPlayableHeuristic ( SynoTrack track, long loadedBytes ) : bool

The heuristic used to define whether a given buffer can be played.

The method can be overrided, but the default predicate can also easily be replaced with the BufferPlayableHeuristicPredicate property.

Dispose ( ) : void
GetVolume ( ) : double
Pause ( ) : void
Resume ( ) : void
SetVolume ( double volume ) : void
StreamTrack ( SynoTrack trackToPlay ) : void

보호된 메소드들

메소드 설명
OnPlaybackStarted ( PlayBackStartedEventArgs eventArgs ) : void

비공개 메소드들

메소드 설명
MediaFailed ( object sender, System.Windows.ExceptionRoutedEventArgs e ) : void
MediaOpened ( object sender, RoutedEventArgs e ) : void
OnCurrentStateChanged ( object sender, RoutedEventArgs e ) : void
OnMediaPositionChanged ( System.TimeSpan position ) : void
PlayingMediaEnded ( object sender, RoutedEventArgs e ) : void

메소드 상세

AudioRenderingService() 공개 메소드

public AudioRenderingService ( IAudioStationSession audioStationSession ) : System
audioStationSession IAudioStationSession
리턴 System

BufferPlayableHeuristic() 공개 메소드

The heuristic used to define whether a given buffer can be played.
The method can be overrided, but the default predicate can also easily be replaced with the BufferPlayableHeuristicPredicate property.
public BufferPlayableHeuristic ( SynoTrack track, long loadedBytes ) : bool
track Synology.AudioStationApi.SynoTrack The track being loaded.
loadedBytes long The amount of loaded bytes.
리턴 bool

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetVolume() 공개 메소드

public GetVolume ( ) : double
리턴 double

OnPlaybackStarted() 보호된 메소드

protected OnPlaybackStarted ( PlayBackStartedEventArgs eventArgs ) : void
eventArgs PlayBackStartedEventArgs
리턴 void

Pause() 공개 메소드

public Pause ( ) : void
리턴 void

Resume() 공개 메소드

public Resume ( ) : void
리턴 void

SetVolume() 공개 메소드

public SetVolume ( double volume ) : void
volume double
리턴 void

StreamTrack() 공개 메소드

public StreamTrack ( SynoTrack trackToPlay ) : void
trackToPlay Synology.AudioStationApi.SynoTrack
리턴 void