[linux-audio-dev] Oss & threading -- is it possible

Paul Davis paul at linuxaudiosystems.com
Fri Oct 10 11:37:00 UTC 2003


>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.



More information about the Linux-audio-dev mailing list