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
Показать файл Открыть проект Примеры использования класса

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