Disable threads broken?

Hi all,

Just made a clean compile of 1.2.1 with “./configure --disable-threads
–disable-pthreads” on Linux. It appears anything that uses sound is
broken with this setup. loopwave in test/ is a good example. I don’t
have a great knowledge of SDL’s internals, so I can’t suggest a proper
way to fix this. Can anyone?

Thanks

theoddone33

Hello Dan Olson !

I think SDL uses a seperate thread for giving Soundata to the Soundcard.
So when there are no threads there is no sound.

CU

“Dan Olson” schrieb im Newsbeitrag news:9kcoa9$1j7$1 at ftp.lokigames.com…> Hi all,

Just made a clean compile of 1.2.1 with “./configure --disable-threads
–disable-pthreads” on Linux. It appears anything that uses sound is
broken with this setup. loopwave in test/ is a good example. I don’t
have a great knowledge of SDL’s internals, so I can’t suggest a proper
way to fix this. Can anyone?

Thanks

theoddone33

In article <9kdobr$ktt$1 at ftp.lokigames.com>, “Torsten Giebl”
wrote:

Hello Dan Olson !

I think SDL uses a seperate thread for giving Soundata to the Soundcard.
So when there are no threads there is no sound.

CU

The Macintosh code as well as some other platforms seem to do audio
without threads. Perhaps some derivative of this could default when
using --disable-threads. I suppose this would involve writing a second
audio driver for each platform though.

theoddone33