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

Provides methods for playing a song.
Наследование: AudioPlayer
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

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

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

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

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

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

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

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

Initializes a new instance of the LocalAudioPlayer class.
public LocalAudioPlayer ( ) : System
Результат System

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

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

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

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

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

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