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