[linux-audio-dev] Oss & threading -- is it possible
    Juan Linietsky 
    coding at reduz.com.ar
       
    Sat Oct 11 12:49:00 UTC 2003
    
    
  
On Friday 10 October 2003 11:31, hexe_2003 at directbox.com wrote:
> 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?
>
In cheesetracker, only one thread writes to the DSP and manages audio
.. the main one is for the GUI. Intercomunication between both is done
via shared memory, unless on destructive operations, where locking is 
performed. (lock on the gui, and trylock on the audio thread). This is to 
ensure that jack will not kill the app :)
Juan Linietsky
    
    
More information about the Linux-audio-dev
mailing list