Subject: Re: [linux-audio-dev] Oss & threading -- is it possible
From: Paul Davis (paul_AT_linuxaudiosystems.com)
Date: Fri Oct 10 2003 - 18:26:45 EEST
>Hello !
>
>I've read somewhere that it is not possible that threads write different data to /
>dev/dsp.
>But how does Cheesetracker, for example, make it then?
i don't how cheesetracker does it, but it requires user-space
synchronization (e.g. pthread_mutex_(un)lock). with ALSA, you don't
need to to do this - any thread can write to the device at any
time. that's the theory, at least. in general, its probably a bad
design to be doing that, much like it is for GUI programming, where
its better to have a single thread mediate between the "device" and
the rest of the program.
This archive was generated by hypermail 2b28 : Fri Oct 10 2003 - 18:44:27 EEST