C# 클래스 ManagedBass.MediaPlayer

A Reusable Channel which can Load files like a Player.

MediaPlayer is perfect for UIs, as it implements INotifyPropertyChanged.

Also, unlike normal, Properties/Effects/DSP set on a MediaPlayer persist through subsequent loads.

상속: INotifyPropertyChanged, IDisposable
파일 보기 프로젝트 열기: ManagedBass/ManagedBass 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetSyncProcedure SyncProcedure
MediaPlayer ManagedBass.Tags
OnStateChanged void

공개 메소드들

메소드 설명
Dispose ( ) : void

Frees all resources used by the player.

Load ( string FileName ) : bool

Loads a file into the player.

Pause ( ) : bool

Pauses the Channel Playback.

Play ( ) : bool

Starts the Channel Playback.

Stop ( ) : bool

Stops the Channel Playback.

Difference from Bass.ChannelStop: Playback is restarted when Play is called.

보호된 메소드들

메소드 설명
InitProperties ( ) : void

Initializes Properties on every call to Load.

OnLoad ( string FileName ) : int

Override this method for custom loading procedure.

OnPropertyChanged ( [ PropertyName = null ) : void

Fires the PropertyChanged event.

비공개 메소드들

메소드 설명
GetSyncProcedure ( System.Action Handler ) : SyncProcedure
MediaPlayer ( ) : ManagedBass.Tags
OnStateChanged ( ) : void

메소드 상세

Dispose() 공개 메소드

Frees all resources used by the player.
public Dispose ( ) : void
리턴 void

InitProperties() 보호된 메소드

Initializes Properties on every call to Load.
protected InitProperties ( ) : void
리턴 void

Load() 공개 메소드

Loads a file into the player.
public Load ( string FileName ) : bool
FileName string Path to the file to Load.
리턴 bool

OnLoad() 보호된 메소드

Override this method for custom loading procedure.
protected OnLoad ( string FileName ) : int
FileName string Path to the File to Load.
리턴 int

OnPropertyChanged() 보호된 메소드

Fires the PropertyChanged event.
protected OnPropertyChanged ( [ PropertyName = null ) : void
PropertyName [
리턴 void

Pause() 공개 메소드

Pauses the Channel Playback.
public Pause ( ) : bool
리턴 bool

Play() 공개 메소드

Starts the Channel Playback.
public Play ( ) : bool
리턴 bool

Stop() 공개 메소드

Stops the Channel Playback.
Difference from Bass.ChannelStop: Playback is restarted when Play is called.
public Stop ( ) : bool
리턴 bool