Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Dec 12, 2017 1:17 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: BASS lib Callbacks - Not for plugin but uses Callbacks
PostPosted: Sat May 17, 2008 5:44 pm 
Offline

Joined: Sat May 17, 2008 5:40 pm
Posts: 5
Hi there,

Perhaps anybody in here could help me since this is a plugin like question

I want to write a callback function for BASS_ChannelSetSync to run on Mac OS X from REALBasic 2008
This is my Call to BASS_ChannelSetSync

#if DebugBuild then
CONST dylibLocation = "@executable_path/../../../libbass.dylib"
#else
CONST dylibLocation = "@executable_path/libbass.dylib"
#endif
Declare Function BASS_ChannelSetSync Lib dylibLocation (ByVal handle As Integer, ByVal type As Integer, ByVal param As Int64, Byval proc As Ptr, ByVal user As Integer) As Integer
resultI= BASS_ChannelSetSync(soundhandle,BASS_SYNC_POS,BASS_ChannelSeconds2Bytes(soundhandle, 5),AddressOf StopSyncCallback,0)

Which returns no error.

and this is my Definition of the callback function StopSyncCallback (declared in a module as public)
a as integer,b as integer,c as integer,d as integer
with no return type

What happens when its time to fire the callback, is that the RB IDE comes back to the foreground (as if there was a breakpoint) but when pressing resume repeatedly without any errors (the music keeps playing, as if the callback has finished its job) , I eventually get a Stack Overflow exception.

Anybody can see anything wrong with my code/setup, or has anybody done this already?

thanks


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group