C# Class OpenSyno.Services.AudioRenderingService

Inheritance: IAudioRenderingService, IDisposable
Mostrar archivo Open project: salfab/open-syno

Public Methods

Method Description
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

Protected Methods

Method Description
OnPlaybackStarted ( PlayBackStartedEventArgs eventArgs ) : void

Private Methods

Method Description
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

Method Details

AudioRenderingService() public method

public AudioRenderingService ( IAudioStationSession audioStationSession ) : System
audioStationSession IAudioStationSession
return System

BufferPlayableHeuristic() public method

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.
return bool

Dispose() public method

public Dispose ( ) : void
return void

GetVolume() public method

public GetVolume ( ) : double
return double

OnPlaybackStarted() protected method

protected OnPlaybackStarted ( PlayBackStartedEventArgs eventArgs ) : void
eventArgs PlayBackStartedEventArgs
return void

Pause() public method

public Pause ( ) : void
return void

Resume() public method

public Resume ( ) : void
return void

SetVolume() public method

public SetVolume ( double volume ) : void
volume double
return void

StreamTrack() public method

public StreamTrack ( SynoTrack trackToPlay ) : void
trackToPlay Synology.AudioStationApi.SynoTrack
return void