C# 클래스 Espera.Core.Audio.LocalAudioPlayer

Provides methods for playing a song.
상속: AudioPlayer
파일 보기 프로젝트 열기: gazwinter/Espera 1 사용 예제들

공개 메소드들

메소드 설명
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