So I started writing my EsounD server (starting off using RB, converting to C later), but I'm having problems with SndPlayDoubleBuffer not calling my doubleback procedure. I don't know what's going wrong at all. The source for the sound bit can be found
here.
What I'm doing to test it is; open a PCM data file, read all of it into the circular buffer which is initialized at a big enough size, then call startPlaying. All of the functions return noErr, and the circular buffer works for sure (it's been extensively tested).
Monitoring the backproccalls variable indicates that the ASoundDoubleBackProc callback isn't being called at all.
Anyone have any ideas of what might be wrong here?