I have been working on a soundboard using AHK and bass.dll, everything is working just fine, everything except sound effects like echo/flanger...
I tried searching google and this forum, but did not find how to make it work.
Official bass documentation states (http www.un4seen.com /doc/#bass/BASS_DX8_FLANGER.html and https://github.com/semyon422/aqua/blob/master/bin64/bass.txt)
Code: Select all
BASS_ChannelSetFX
and parameters,
Code: Select all
typedef struct {
float fWetDryMix;
float fDepth;
float fFeedback;
float fFrequency;
DWORD lWaveform;
float fDelay;
DWORD lPhase;
} BASS_DX8_FLANGER;
I have tried
Code: Select all
DllCall("BASS\BASS_FX_DX8_FLANGER", UInt,hMedia, "float", 20, "float", 10, "float", 0, "float", 7, "DWORD", 0, "float", 4, "DWORD", BASS_DX8_PHASE_180)
Working code:
Code: Select all
BASS_DLLCALL := DllCall("LoadLibrary","str",ALLUSERSPROFILE "\Data\bass.dll") ; load Bass.dll
BASS_Init := DllCall(ALLUSERSPROFILE . "\Data\bass.dll\BASS_Init",Int,-1,UInt,44100,Int,0,UInt,0,UInt,0) ;initialise Bass
BASS_start := DllCall(ALLUSERSPROFILE . "\Data\bass.dll\BASS_Start", int) ;Start Bass
hMedia := DllCall(ALLUSERSPROFILE "\Data\bass.dll\BASS_StreamCreateFile", Int, 0, Astr, sound_name, Uint, 0, Uint, 0, Uint, 0, Uint, 44100) ; Create Stream or Buff in Memory
BASS_ChannelPlay := DllCall(ALLUSERSPROFILE . "\Data\bass.dll\BASS_ChannelPlay", UInt,hMedia, Int,1) ;Starts playback