Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / how can I use BASS reverse fx in DarkBasicPro ?

Author
Message
dman
21
Years of Service
User Offline
Joined: 21st Feb 2005
Location:
Posted: 5th May 2010 04:35
I created a decoded stream file, then use the BASS_FX_RreverseCreate then BASS_ChannelSetAttributes with the FLAGS.

I would like to know how to use the correct FLAGS or settings to get the reverse working. here is a piece of code.

set display mode 640,480,32

sync on
ink rgb(255,255,0),rgb(0,0,0)
load dll "bass.dll",1
load dll "bass_fx.dll",2

call dll 1,"BASS_Init",-1,44100,0,0,0

stream1 = call dll (1,"BASS_StreamCreateFile",0,"Busta.mp3",0,0,0x200000)
stream2 = call dll (2,"BASS_FX_ReverseCreate",stream1,2.0,4)

call dll 1,"BASS_ChannelSetAttributes",stream2,0x11000,1.0
call dll 1,"BASS_ChannelPlay",stream2,1
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 7th May 2010 01:28
Maybe post this in "dll Talk" where more people might have heard of the plugin?

What does it do anyways?

BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 7th May 2010 04:05
Quote: "
BOOL BASS_ChannelSetAttribute(
DWORD handle,
DWORD attrib,
float value
);


Parameters
handle The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.
attrib The attribute to set the value of... one of the following.
BASS_ATTRIB_EAXMIX EAX wet/dry mix. (HCHANNEL/HMUSIC/HSTREAM only)
BASS_ATTRIB_FREQ Sample rate.
BASS_ATTRIB_MUSIC_AMPLIFY Amplification level. (HMUSIC)
BASS_ATTRIB_MUSIC_BPM BPM. (HMUSIC)
BASS_ATTRIB_MUSIC_PANSEP Pan separation level. (HMUSIC)
BASS_ATTRIB_MUSIC_PSCALER Position scaler. (HMUSIC)
BASS_ATTRIB_MUSIC_SPEED Speed. (HMUSIC)
BASS_ATTRIB_MUSIC_VOL_CHAN A channel volume level. (HMUSIC)
BASS_ATTRIB_MUSIC_VOL_GLOBAL Global volume level. (HMUSIC)
BASS_ATTRIB_MUSIC_VOL_INST An instrument/sample volume level. (HMUSIC)
BASS_ATTRIB_PAN Panning/balance position.
BASS_ATTRIB_VOL Volume level.
other attributes may be supported by add-ons, see the documentation.

value The new attribute value. See the attribute's documentation for details on the possible values.


Return value
If successful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_HANDLE handle is not a valid channel.
BASS_ERROR_ILLTYPE attrib is not valid.
BASS_ERROR_ILLPARAM value is not valid. See the attribute's documentation for the valid range of values.
some attributes may have additional error codes, see the documentation.


Remarks
The actual attribute value may not be exactly the same as requested, due to precision differences. For example, an attribute might only allow whole number values. BASS_ChannelGetAttribute can be used to confirm what the value is.
"


Quote: "
// Channel attributes
#define BASS_ATTRIB_FREQ 1
#define BASS_ATTRIB_VOL 2
#define BASS_ATTRIB_PAN 3
#define BASS_ATTRIB_EAXMIX 4
#define BASS_ATTRIB_MUSIC_AMPLIFY 0x100
#define BASS_ATTRIB_MUSIC_PANSEP 0x101
#define BASS_ATTRIB_MUSIC_PSCALER 0x102
#define BASS_ATTRIB_MUSIC_BPM 0x103
#define BASS_ATTRIB_MUSIC_SPEED 0x104
#define BASS_ATTRIB_MUSIC_VOL_GLOBAL 0x105
#define BASS_ATTRIB_MUSIC_VOL_CHAN 0x200 // + channel #
#define BASS_ATTRIB_MUSIC_VOL_INST 0x300 // + instrument #
"


Does that get you anwhere?

@baxslash
Quote: "
BASS is an audio library for use in Windows and Mac OSX software. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a tiny DLL, under 100KB* in size.
"


I love it when I don't have to write anything to answer questions _.

Login to post a reply

Server time is: 2026-07-26 04:27:48
Your offset time is: 2026-07-26 04:27:48