[Openal] Problems with streams and threads.
Leben Ojanen
lebenojanen at gmail.com
Sat Aug 18 12:21:26 PDT 2007
Hi all,
I'm having a bit of trouble playing a streaming sound (music) and a
normal buffered sound (sound effect) at the same time. Since the
stream contains a while loop (to handle it's buffers) it locks the
program up.
I put it into it's own thread and it works fine. The problem comes
when I try to play the buffered sound effect while the music is
playing. It will play once, but during the second playthrough the
thread around the streaming music crashes.
I'll be the first to admit I'm new to some of the threading business,
but I believe I'm doing everything correctly. I'm just not sure why
the second play of a buffered sound would crash the thread.
For reference, both "sounds" are instances of an openal wrapper object
I created, so they're not using the same memory or anything. Hense my
confusion. If anyone wants more information, please let me know.
Thanks,
Leben
More information about the Openal
mailing list