C# 클래스 PlayControl.BassWrapper

Bass Wrapper Class to wrap the Bass Library
파일 보기 프로젝트 열기: mhack/gamenoise 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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