From: Sam S. <sam...@gm...> - 2006-05-16 12:56:45
|
On May 14, 2006, at 11:37 AM, Dan Potter wrote: > 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. Not sure if sourceforge or gmail ate my messages for so long, but I finally got your reply this morning. I managed to get it working, by returning GDSuccess with silence when the stream first runs out of data, then on the next request for data I return GDEOS. That seems to let OpenAL empty its buffer out before it deletes the source (though occasionally it'll assert() and bring the app down, but most of the time it works). I also made an effort to port KOS's stream.c into the new streaming class (Atani's code is just a stub). It kinda works, I can get sound out of my tone generator, though it's a little choppy, and eventually the DC hangs up. It also crashes when trying to use the oggvorbis player (it wont even pre-fill the buffer...). I'm not very familiar with the streaming API, so I'm kind of shooting in the dark with this. If I check in what I have so far, is anyone else interested in troubleshooting it / finishing it? It'd be nice to have sound on the DC :) -Sam |