Blitz_bass_studio help functions : [subject] (location)


[WINDOWS ->USER32/KERNEL32.DLL] (bass.decls)


=====================================================================================

- BASS_HWND() = use this (if you dont have an other lib for this)  to init bass. 
	Or use "0" for default (see demo_start)

- BASS_RtlMoveMemory1%(Destination*,Source,Length) = we need that for some help functions

- BASS_RtlMoveMemory2%(Destination,Source*,Length) = we need that for some help functions

=====================================================================================


[MATH STUFF] (bass.bb)


=====================================================================================

- BASS_MakeLong(lo%,hi2%) =Returns a lo/hi word for ex. BASS_ChannelSetPosition for (ex) modfiles.

- BASS_MakeHiWord(val%) = Returns a HiWord from a Long

- BASS_MakeLoWord(val%) = Returns a LoWord from a Long

=====================================================================================


[BASS.DLL] (bass.bb)

=== Debug ======================================================================

- BASS_CheckVersion()
	Close the programm with a runtime if the bass version loaded is not compatible to the decls/bass.bb
	Else, return "0"
	Use this after BASS_init to test your bass.dll version (loaded)

- BASS_Debug(message$="none")
	Close the programm with a "RuntimeError" if there is a problem. Else return "0"
	As you can see, you can also add a custom text if you want

- BASS_GetErrorString$ () Returns an error string 
	Example:
	musik  = BASS_MusicLoad(0,"JACKDANC.MOD",0,0,0,0) 
	error$ = BASS_GerErrorString ()
	Print error ; for example BASS_ERROR_FILEOPEN if the file is not present

=== Informations ======================================================================

- BASS_GetDeviceDescriptionString$(device%)
	Returns a string with the device name
	Example: mydevice$ = BASS_GetDeviceDescriptionString$(1)

- BASS_GetDeviceCount()
	Returns the number of devices found (hardware)


=== DX8 SFX ========================================================================== 

- BASS_FXSetChorus%(HFX,fWetDryMix#,fDepth#,fFeedback#,fFrequency#,lWaveform%,fDelay#,lPhase%)  Returns TRUE or 	FALSE (1/0)

- BASS_FXSetCompressor%(HFX,fGain#,fAttack#,fRelease#,fThreshold#,fRatio#,fPredelay#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetDistortion%(HFX,fGain#,fEdge#,fPostEQCenterFrequency#,fPostEQBandwidth#,fPreLowpassCutoff#)  Returns 	TRUE or FALSE (1/0)

- BASS_FXSetEcho%(HFX,fWetDryMix#,fFeedback#,fLeftDelay#,fRightDelay#,lPanDelay%)  Returns TRUE or FALSE (1/0)

- BASS_FXSetFlanger%(HFX,fWetDryMix#,fDepth#,fFeedback#,fFrequency#,lWaveform%,fDelay#,lPhase%)  Returns TRUE or 	FALSE (1/0)

- BASS_FXSetGargle%(HFX,dwRateHz%,dwWaveShape%)  Returns TRUE or FALSE (1/0)

- BASS_FXSetParamEQ(HFX,fCenter#,fBandwidth#,fGain#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetReverb%(HFX,fInGain#,fReverbMix#,fReverbTime#,fHighFreqRTRatio#)  Returns TRUE or FALSE (1/0)

- BASS_FXSetI3DL2Reverb%(HFX,lRoom%,lRoomHF%,flRoomRolloffFactor#,flDecayTime#,flDecayHFRatio#, 	lReflections%,flReflectionsDelay#,lReverb%,flReverbDelay#, flDiffusion#,flDensity#,flHFReference#)  Returns 	TRUE or FALSE (1/0)
	
- Bass_FXGetValue#(HFX,effect%,number%) Returns a float with the asked value :
	
	Example: If you have an echo effect like  - BASS_FXSetEcho(myecho,50,0,50,30,BASS_FALSE) 
	Use : Bass_FXGetValue(myecho,BASS_ECHO,3) to get the value of the left Delay, so 3 for the 3te effect value.
	Bass_FXGetValue(myChorus,BASS_CHORUS,4) returns the frequency of the effect myChorus.
	Effect flags are the same as for BASS_ChannelSetFX (bass.chm)

=== Load from RAM (mem)=================================================================

- BASS_SampleLoadMem%(mem%,file*,offset%,length%,max%,flags%) 
	Use this as  BASS_SampleLoad to load from memory.
	Returns TRUE or FALSE (1/0)
 
- BASS_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%)
	Use this as  BASS_StreamCreateFile to load from memory.
	Returns TRUE or FALSE (1/0)

- BASS_MusicLoadMem%(mem%,file*,offset%,length%,flags%,freq%)
	Use this as  BASS_MusicLoad to load from memory.
	Returns TRUE or FALSE (1/0)

=== Mod Commands ===================================================================

- BASS_MakeMusicPos (order%,row%)
	To use with BASS_ChannelSetPosition

=== 3D Commands ====================================================================

For attributes see --> BASS_Set3DPosition / BASS_ChannelSet3DPosition(bass.chm)
Note 4 experts: the original bass commands with 4 pointers (types) are also working
BASS_ChannelSet3DAttributes and BASS_Set3DFactors you can use as shown in the bass.chm

- BASS_Update3DListener%(entity%) Use this to update your listener each frame (see tut_3D.bb)

- BASS_Set3DPositionPos%(posX#,posY#,posZ#) Returns 	TRUE or FALSE (1/0) (see BASS_Set3DPosition)*

- BASS_Set3DPositionVel%(velX#,velY#,velZ#) Returns 	TRUE or FALSE (1/0) (see BASS_Set3DPosition)*

- BASS_Set3DPositionFront%(frontX#,frontY#,frontZ#) Returns 	TRUE or FALSE (1/0) (see BASS_Set3DPosition)*

- BASS_Set3DPositionTop%(topX#,topY#,topZ#) Returns 	TRUE or FALSE (1/0) (see BASS_Set3DPosition)*

- BASS_Set3DPositionFrontTop%(frontX#,frontY#,frontZ#,topX#,topY#,topZ#) Returns 	TRUE or FALSE (1/0) (see BASS_Set3DPosition)*

- BASS_ChannelSet3DPositionPos% (channel%,posX#,posY#,posZ#) Returns 	TRUE or FALSE (1/0) (see BASS_ChannelSet3DPosition) (see demo_3D.bb)

- BASS_ChannelSet3DPositionOri% (channel%,oriX#,oriY#,oriZ#) Returns 	TRUE or FALSE (1/0) (see BASS_ChannelSet3DPosition)*

- BASS_ChannelSet3DPositionVel% (channel%,velX#,velY#,velZ#) Returns 	TRUE or FALSE (1/0) (see BASS_ChannelSet3DPosition)*

* for advanced users

=== Beep & Chiptunes ===============================================================

- BASS_CreateBeep%(art% = 1 ,hz% = 900,time% = 100 ,freq% = 44100 , chans% = 1, max% = 1, flags% = 0, onlynew% = 0)
	art = waveform defined in function (see bass.bb) 
	hz = frequency 
	time = duration in millisecs (1000 = 1 second) 
	freq = samplerate
	chans = channels (1 = mono/2 = stereo.....or more)
	max = maximum number of simultaneous playbacks
	flags = see "BASS_SampleCreate"(bass.chm)
	onlynew (bool) = Do not recycle/override one of the sample's existing channels? 

Returns a new channel handle ready to play. See demo_beep.bb

====================================================================================


[BASS_FLAC.DLL] (bass_flac.bb)


====================================================================================

BASS_FLAC_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%)  Returns TRUE or FALSE (1/0)
	Use this as  BASS_FLAC_StreamCreateFile to load from memory. 

====================================================================================


[BASS_MIDI.DLL] (bass_midi.bb)


====================================================================================

- BASS_MIDI_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%,freq%)  Returns TRUE or FALSE (1/0)
	Use this as BASS_MIDI_StreamCreateFile to load from mem

====================================================================================


[BASS_WMA.DLL] (bass_wma.bb)


============================================================================================

- BASS_WMA_StreamCreateFileMem%(mem%,file*,offset%,lenght%,flags%) = load from mem  Returns TRUE or FALSE (1/0)

- BASS_WMA_StreamCreateFileAuthMem%(mem%,file*,offset%,lenght%,flags%,user*,pass*) = load from mem  Returns TRUE or 	FALSE (1/0)

============================================================================================


[BASS_FX.DLL] (bass_fx.bb)


============================================================================================

BASS_FX_DSP_Echo%(han_dle,level#,elay%)

BASS_FX_DSP_Flanger%(han_dle,wetdry#,speed#,channel%)

BASS_FX_DSP_Volume%(han_dle,channel%,volume#)

BASS_FX_DSP_Equalizer%(han_dle,band%,freq%,bandw#,q#,center#,gain#,channel%)

BASS_FX_DSP_Reverb%(han_dle,level#,elay%)

BASS_FX_DSP_Lowpass%(han_dle,freq%,reson#,cutoff#,channel%)

BASS_FX_DSP_Damp%(han_dle,target#,quit#,rate#,gain#,elay#,channel%)

BASS_FX_DSP_AutoWah%(han_dle,drymix#,wetmix#,feedback#,rate#,range#,freq#,channel%)

BASS_FX_DSP_Echo2%(han_dle,drymix#,wetmix#,feedback#,elay#,channel%)

BASS_FX_DSP_Phaser%(han_dle,drymix#,wetmix#,feedback#,rate#,range#,freq#,channel%)

BASS_FX_DSP_Echo3%(han_dle,drymix#,wetmix#,elay#,channel%)

BASS_FX_DSP_Chorus%(han_dle,drymix#,wetmix#,feedback#,minsweep#,maxsweep#,rate#,channel%)

BASS_FX_DSP_APF(han_dle,gain#,elay#,channel%)

BASS_FX_DSP_Compressor(han_dle,treshold#,attack#,release#,channel%)

BASS_FX_DSP_Distortion(han_dle,drive#,drymix#,wetmix#,feetback#,volume#,channel%)

	All = Returns TRUE or FALSE (1/0)

Tip! This commands you can use in realtime! They are better then the Dx8 commands but need (a little) more power.
(We talk about 0.x% an a 2ghz CPU ^^)
On Vista Dx8(9) is emulated by software, so i recommand to use this onces for better quality.
See demo_plugin.bb

===========================================================================================








