From: Dan P. <ba...@al...> - 2006-05-14 15:38:07
|
On May 13, 2006, at 11:16 PM, Sam Steele wrote: > I'm running into some trouble with the Stream API. I wrote a > little tone generator to use with DreamZZT, it seems to work fine > the first time it plays a tune, but once the tune is over I can't > get it to play anything else (I just get static or silence). Is > there something I have to do to reset something after the tune is > done, so the object can be reused? I'm returning GDEOS when the > tune is finished, but that seems to get the object into a state > where it wont play anything else. Not real sure... I will say that I haven't used it that way myself. What I usually do is use the stream objects as a one-shot and get a new one when I want to start a new song. So there might be bugs in it for the other usage. You might want to just step through it with Xcode and see what is going on. |