C# Класс PlayControl.BassWrapper

Bass Wrapper Class to wrap the Bass Library
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
TmpBalance float

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

Метод Описание
BassWrapper ( IntPtr handle ) : System

Constructor for the Bass Wrapper Class

GetTags ( String songPath ) : string[]

Method to Read Music Tags from Files

GetTimeLength ( string filepath ) : double

Get The Length of a Song

drawVisual ( Graphics g ) : void

This method wraps the Visualisingmethods of the BASS Library

getBalance ( ) : float

Get The Balace

getChangeEQ ( ) : bool

Returns if something in the EQ has changed

getElapsedTime ( ) : double

Get Method for elapsed Time of Stream

getEqualizer ( ) : float[]

Get Method for recent Equalizer Settings

getFFTData ( ) : float[]

Catch the FFT-Data of the current steam

getPaused ( ) : bool

Get Method for check if Stream is paused

getStreamId ( ) : int
getTags ( String songPath ) : string[]

Method to Read Music Tags from Files

getTotalTime ( ) : double

Get Method for total Time of Stream

getVolume ( ) : float

Volume Get-Method

getstopped ( ) : bool

Get Stop Variable

gettoggleEQ ( ) : bool

Get EQ-state

pause ( ) : void

Pause the Playing stream or if it is paused Play it aggain

play ( string songPath ) : void

The Play Method plays a song by his path with the Bass Lib.

play ( string songPath, bool &validSong ) : void

The Play Method plays a song by his path with the Bass Lib.

setBalance ( float bal ) : void

Set The Balace

setEqualizer ( float frequencyList ) : void

Set Equalizer Settings

setEqualizerBand ( int band, float freq ) : void

Sets Single Equalizer Band

setPlayPosition ( double seconds ) : bool

Set A new Postition to Play the stream

setVolume ( float gain ) : void

Method to Set Volume of Master Output

settoggleEQ ( bool state ) : void

Switch Equalizer On/Off

stop ( ) : void

Stop playing stream

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

Метод Описание
EndSync ( int handle, int channel, int data, IntPtr user ) : void

This Method is is Called when a Song is at its end

EqualizerInit ( ) : void

This Method Sets the Equalizer Settings to a new Stream.

EtimeClockTick ( object sender, EventArgs e ) : void

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

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

Constructor for the Bass Wrapper Class
public BassWrapper ( IntPtr handle ) : System
handle System.IntPtr Window Handle
Результат System

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

Method to Read Music Tags from Files
public static GetTags ( String songPath ) : string[]
songPath String Filepath
Результат string[]

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

Get The Length of a Song
public static GetTimeLength ( string filepath ) : double
filepath string Song
Результат double

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

This method wraps the Visualisingmethods of the BASS Library
public drawVisual ( Graphics g ) : void
g System.Drawing.Graphics Grafics Object
Результат void

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

Get The Balace
public getBalance ( ) : float
Результат float

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

Returns if something in the EQ has changed
public getChangeEQ ( ) : bool
Результат bool

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

Get Method for elapsed Time of Stream
public getElapsedTime ( ) : double
Результат double

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

Get Method for recent Equalizer Settings
public getEqualizer ( ) : float[]
Результат float[]

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

Catch the FFT-Data of the current steam
public getFFTData ( ) : float[]
Результат float[]

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

Get Method for check if Stream is paused
public getPaused ( ) : bool
Результат bool

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

public getStreamId ( ) : int
Результат int

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

Method to Read Music Tags from Files
public getTags ( String songPath ) : string[]
songPath String
Результат string[]

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

Get Method for total Time of Stream
public getTotalTime ( ) : double
Результат double

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

Volume Get-Method
public getVolume ( ) : float
Результат float

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

Get Stop Variable
public getstopped ( ) : bool
Результат bool

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

Get EQ-state
public gettoggleEQ ( ) : bool
Результат bool

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

Pause the Playing stream or if it is paused Play it aggain
public pause ( ) : void
Результат void

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

The Play Method plays a song by his path with the Bass Lib.
public play ( string songPath ) : void
songPath string
Результат void

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

The Play Method plays a song by his path with the Bass Lib.
public play ( string songPath, bool &validSong ) : void
songPath string Song Path to Play
validSong bool returns if song is playable by plugin or bass
Результат void

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

Set The Balace
public setBalance ( float bal ) : void
bal float -1 left / +1 right
Результат void

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

Set Equalizer Settings
public setEqualizer ( float frequencyList ) : void
frequencyList float 10 Band Float list
Результат void

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

Sets Single Equalizer Band
public setEqualizerBand ( int band, float freq ) : void
band int Band to set
freq float Gain to set
Результат void

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

Set A new Postition to Play the stream
public setPlayPosition ( double seconds ) : bool
seconds double Stream position
Результат bool

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

Method to Set Volume of Master Output
public setVolume ( float gain ) : void
gain float /// Volume: /// 1 = max /// 0 = min ///
Результат void

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

Switch Equalizer On/Off
public settoggleEQ ( bool state ) : void
state bool /// true = On /// false = Off ///
Результат void

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

Stop playing stream
public stop ( ) : void
Результат void

Описание свойств

TmpBalance публичное свойство

Temporary Save Balance
public float TmpBalance
Результат float