C# Class Espera.Core.Audio.LocalAudioPlayer

Provides methods for playing a song.
Inheritance: AudioPlayer
Afficher le fichier Open project: gazwinter/Espera Class Usage Examples

Méthodes publiques

Méthode 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 LocalAudioPlayer. This is required before playing a new song.

LocalAudioPlayer ( ) : System

Initializes a new instance of the LocalAudioPlayer class.

Pause ( ) : void

Pauses the playback of the AudioPlayer.LoadedSong.

Play ( ) : void

Starts or continues the playback of the AudioPlayer.LoadedSong.

Stop ( ) : void

Stops the playback of the AudioPlayer.LoadedSong.

Private Methods

Méthode Description
CloseStream ( ) : void
CreateInputStream ( Song song ) : void
OpenMp3Stream ( Stream stream ) : NAudio.Wave.WaveChannel32
OpenSong ( Song song ) : void
OpenWavStream ( Stream stream ) : NAudio.Wave.WaveChannel32
RenewWavePlayer ( ) : void
UpdateSongState ( ) : void

Method Details

Dispose() public méthode

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

Load() public méthode

Loads the specified song into the 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.
Résultat void

LocalAudioPlayer() public méthode

Initializes a new instance of the LocalAudioPlayer class.
public LocalAudioPlayer ( ) : System
Résultat System

Pause() public méthode

Pauses the playback of the AudioPlayer.LoadedSong.
public Pause ( ) : void
Résultat void

Play() public méthode

Starts or continues the playback of the AudioPlayer.LoadedSong.
The playback couldn't be started.
public Play ( ) : void
Résultat void

Stop() public méthode

Stops the playback of the AudioPlayer.LoadedSong.
public Stop ( ) : void
Résultat void