Err ssplReset ( SoundSpooler *sspl, void (*UserBufferProcessor) ( SoundSpooler *, SoundBufferNode * ) )
ssplAbort()
calls this function to clear the active queue after stopping the sound spooler.
If a SoundBufferFunc is installed, a SSPL_SBMSG_ABORT message is sent to it with each SoundBufferNode removed from the active queue. If UserBufferProcessor is non-NULL, each SoundBufferNode removed from the active queue is passed to it. If both a SoundBufferFunc and UserBufferProcessor are supplied, ssplReset()
fails and returns ML_ERR_BAD_ARG.
If SoundBufferFunc fails, ssplReset()
fails immediately and returns the error code returned by SoundBufferFunc without removing the rest of the buffers from the active queue. Calling ssplReset()
again safely picks up where it left off.
Clears SSPL_STATUS_F_ACTIVE.
ssplAbort()
instead.
ssplAbort
(), SoundBufferFunc(), UserBufferProcessor(), ssplGetSpoolerStatus()