Code: Select all
GetFunction() with BASS_Init(-1,44100,0,0,0)
Can you help with this one ?
Is this right ?
Code: Select all
GetFunction(0, "BASS_Init" -1, 44100, 0, 0, 0)
Code: Select all
GetFunction() with BASS_Init(-1,44100,0,0,0)
Code: Select all
GetFunction(0, "BASS_Init" -1, 44100, 0, 0, 0)
(Bad english translationAs you call into the forest, it resounds
Code: Select all
*FunctionAddress = GetFunction(Library, "BASS_init")
FunctionResult = CallFunctionFast(*FunctionAddress, arg1, arg2, ...)
Code: Select all
FunctionResult = CallFunction(Library, "BASS_Init", arg1, arg2, ...)
Code: Select all
;;BOOL BASS_Init(
;; int device, // The device to use... -1 = default device, 0 = no sound, 1 = first real output device
;; DWORD freq, // Output sample rate
;; DWORD flags, // A combination of flags
;; HWND win, // The application's main window... 0 = the current foreground window (use this for console applications)
;; GUID *clsid // Class identifier of the object to create, that will be used to initialize DirectSound... NULL = use default
;;);
PrototypeC.i BASS_Init(device.l, freq.l, flags.l, win.i, *clsid_guid)
BASS_DLL.i = OpenLibrary(#PB_Any, #BASS_DLL_FILENAMEPATH$)
If BASS_DLL ; Define BASS.dll Functions to be used.
Global BASS_Init.BASS.Init = GetFunction(BASS_DLL, "BASS_Init")
;...etc...
EndIf