I'm trying to make a Delphi XE2 Firemonkey application work with BASS.
Compiling and running in windows it's so easy and works fine, but when I export and use Xcode don't work.
I make some test, and the reason I find it's the 'libbass.a' isn't loaded, but it's added to the project.
I hope this help to people like me are starting with Delphi/Xcode.
Here is my code:
libName := {$IFDEF WIN32}ExtractFilePath(paramstr(0))+'bass.dll'{$ELSE}ExtractFilePath(paramstr(0))+'libbass.a'{$ENDIF};
libLoaded := Load_BASSDLL(libName);
if libLoaded then begin
libInit := BASS_Init( -1, 44100, 0, Handle, nil);
wav_name:=ExtractFilePath(paramstr(0))+'Tick.wav';
snd_Tick:= BASS_StreamCreateFile(False, PChar(wav_name), 0, 0, BASS_SPEAKER_FRONT {$IFDEF UNICODE} or BASS_UNICODE {$ENDIF});
BASS_ChannelPlay(snd_Tick, False);
end else libInit:=false;
As you cas see I try to load the library and then play a simple Wav. Where I'm wrong?
Thanks in advance!
Leniad