C# Class OpenSyno.Services.AudioRenderingService

Inheritance: IAudioRenderingService, IDisposable
Afficher le fichier Open project: salfab/open-syno

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnPlaybackStarted ( PlayBackStartedEventArgs eventArgs ) : void

Private Methods

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

public AudioRenderingService ( IAudioStationSession audioStationSession ) : System
audioStationSession IAudioStationSession
Résultat System

BufferPlayableHeuristic() public méthode

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.
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetVolume() public méthode

public GetVolume ( ) : double
Résultat double

OnPlaybackStarted() protected méthode

protected OnPlaybackStarted ( PlayBackStartedEventArgs eventArgs ) : void
eventArgs PlayBackStartedEventArgs
Résultat void

Pause() public méthode

public Pause ( ) : void
Résultat void

Resume() public méthode

public Resume ( ) : void
Résultat void

SetVolume() public méthode

public SetVolume ( double volume ) : void
volume double
Résultat void

StreamTrack() public méthode

public StreamTrack ( SynoTrack trackToPlay ) : void
trackToPlay Synology.AudioStationApi.SynoTrack
Résultat void