Stopping a Audio Unit From Callback PROPERLY
Stopping a Audio Unit From Callback PROPERLY
- Subject: Stopping a Audio Unit From Callback PROPERLY
- From: Brian Barnes <email@hidden>
- Date: Sun, 30 Sep 2001 01:26:22 -0400
I am very very close to a working coreaudio replacement for the sound
manager stuff in dim3 (www.klinksoftware.com). There is ONE thing that
I can't figure out.
In my Input_Callback for the audio unit, if the sound is a looping
sound, I just restart the buffer. If it's single-shot, then I need to
stop the sound. Right now I return -1, and the error state *seems* to
put the buffer into stop mode, and then I can launch another sound on it.
I can't imagine this is the supported way! Is this OK? Will it
continue to work? Or is there a better way?
Please help me before I guess again!
[>] Brian