The line is identical as shown above - No typo.
I read from bass.chm that -
BOOL BASS_Init(
int device,
DWORD freq,
DWORD flags,
HWND win,
GUID *clsid
);
Where :
win The application's main window... 0 = the desktop window (use this for console applications). This is only needed when using DirectSound output.
It fails at @Handle which I believe means a pointer to the applications main window.
Is it something to do with my Lazarus installation or Linux OS?
If I declare a variable
var Handle1 : pointer;
and try
if BASS_Init(-1, 44100, 0, @Handle1, nil) then showmessage ('OK') else
showMessage ('Error');
Then it compiles, but I get no sound after
B _Stream := BASS_StreamCreateFile(False, PChar(Filename), 0, 0, BASS_STREAM_PRESCAN or BASS_Sample_Float);
BASS_ChannelPlay(B_Stream, false);
I assume this is because Handle1 is not the main windows handle.
So how do I do Handle1 := Form1.Handle?