[Openal] Callback function

Jason Daly jdaly at ist.ucf.edu
Mon Apr 27 15:02:54 PDT 2009


Nick Poole wrote:
> Is there any why to register a callback function for when a sound has 
> finished playing?
>   

No, there isn't.  The closest way to do this is to do a periodic check 
like this:

alGetIntegeriv(sourceID, AL_SOURCE_STATE, &state);
if (state != AL_PLAYING)
{
   /* code here */
}


--"J"



More information about the Openal mailing list