C# Класс Espera.Core.Audio.AudioPlayer

This class implements the basic audio player behavior. The actual playback implementation is defined in the IMediaPlayerCallback implementations.
Наследование: IEnableLogger
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnSongFinished ( EventArgs e ) : void

Raises the SongFinished event.

Описание методов

Dispose() публичный абстрактный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public abstract Dispose ( ) : void
Результат void

Load() публичный Метод

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.
Результат void

OnSongFinished() защищенный Метод

Raises the SongFinished event.
protected OnSongFinished ( EventArgs e ) : void
e EventArgs The instance containing the event data.
Результат void

Pause() публичный абстрактный Метод

Pauses the playback of the LoadedSong.
public abstract Pause ( ) : void
Результат void

Play() публичный абстрактный Метод

Starts or continues the playback of the LoadedSong.
The playback couldn't be started.
public abstract Play ( ) : void
Результат void

Stop() публичный абстрактный Метод

Stops the playback of the LoadedSong.
public abstract Stop ( ) : void
Результат void