C# Class Espera.Core.Audio.AudioPlayer

This class implements the basic audio player behavior. The actual playback implementation is defined in the IMediaPlayerCallback implementations.
Inheritance: IEnableLogger
Mostra file Open project: gazwinter/Espera Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Load ( Song song ) : void

Loads the specified song into the Espera.Core.Audio.LocalAudioPlayer. This is required before playing a new song.

Pause ( ) : void

Pauses the playback of the LoadedSong.

Play ( ) : void

Starts or continues the playback of the LoadedSong.

Stop ( ) : void

Stops the playback of the LoadedSong.

Protected Methods

Method Description
OnSongFinished ( EventArgs e ) : void

Raises the SongFinished event.

Method Details

Dispose() public abstract method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public abstract Dispose ( ) : void
return void

Load() public method

Loads the specified song into the Espera.Core.Audio.LocalAudioPlayer. This is required before playing a new song.
song is null.
public Load ( Song song ) : void
song Song The song to load into the player.
return void

OnSongFinished() protected method

Raises the SongFinished event.
protected OnSongFinished ( EventArgs e ) : void
e EventArgs The instance containing the event data.
return void

Pause() public abstract method

Pauses the playback of the LoadedSong.
public abstract Pause ( ) : void
return void

Play() public abstract method

Starts or continues the playback of the LoadedSong.
The playback couldn't be started.
public abstract Play ( ) : void
return void

Stop() public abstract method

Stops the playback of the LoadedSong.
public abstract Stop ( ) : void
return void