# Disable threads broken?

**URL:** <https://discourse.libsdl.org/t/disable-threads-broken/4828>\
**Category:** SDL Development\
**Created:** [August 2, 2001, 4:31pm UTC](https://discourse.libsdl.org/t/disable-threads-broken/4828 "2001-08-02T16:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Olson](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/d/bbe5ce/32.png) [@Dan\_Olson](https://discourse.libsdl.org/u/Dan_Olson)\
**Post date:** [August 2, 2001, 4:31pm UTC](https://discourse.libsdl.org/t/disable-threads-broken/4828/1 "2001-08-02T16:31:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Torsten\_Giebl](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/torsten_giebl/32/2804_2.png) [@Torsten\_Giebl](https://discourse.libsdl.org/u/Torsten_Giebl)\
**Post date:** [August 3, 2001, 1:35am UTC](https://discourse.libsdl.org/t/disable-threads-broken/4828/2 "2001-08-03T01:35:59Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![Dan\_Olson](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/d/bbe5ce/32.png) [@Dan\_Olson](https://discourse.libsdl.org/u/Dan_Olson)\
**Post date:** [August 3, 2001, 12:26pm UTC](https://discourse.libsdl.org/t/disable-threads-broken/4828/3 "2001-08-03T12:26:02Z")

</div>

In article \<9kdobr$ktt$1 at [ftp.lokigames.com](http://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
