OpenAL + SDL Woes... I think
Posted: Sat Jun 18, 2011 5:13 am
Hey guys,
Recently i added support for streaming ogg vorbis audio into OpenAL. This seemed to all work well, but then i moved the window. The issue im having seems to be the fact that windows likes to pause the main thread whilst the window position is being altered. My basis for this theory is the fact that my rendering (via OpenGL) seems to be paused as well during the move. How i did not notice that before, i have no idea. So my question is whether or not i should be running OpenAL on a different thread (shoot me) or i should try to find some way to keep the buffers from screwing themselves over (yet again shoot me)?
In case anyone wishes to know, i am running Windows Vista x64, and i have not tested this on my Linux installation.
Also, I mainly followed this tutorial: http://www.devmaster.net/articles/opena ... esson8.php
Thanks.
Recently i added support for streaming ogg vorbis audio into OpenAL. This seemed to all work well, but then i moved the window. The issue im having seems to be the fact that windows likes to pause the main thread whilst the window position is being altered. My basis for this theory is the fact that my rendering (via OpenGL) seems to be paused as well during the move. How i did not notice that before, i have no idea. So my question is whether or not i should be running OpenAL on a different thread (shoot me) or i should try to find some way to keep the buffers from screwing themselves over (yet again shoot me)?
In case anyone wishes to know, i am running Windows Vista x64, and i have not tested this on my Linux installation.
Also, I mainly followed this tutorial: http://www.devmaster.net/articles/opena ... esson8.php
Thanks.