[linux-audio-dev] diskstream and jack
dsbaikov at gmail.com
Fri Jul 14 09:57:16 UTC 2006
> - The worker thread is faster then the jackthread. (Sure, it should be). What
> is the usual way to pause the workerthread and wake up again, when the
> ringbuffer needs more data.
Use semaphores, Luke!
> -Which size should the ringbuffer have.
You need to experiment a bit, but I think 64k is sufficuent. Anyway
better do this user-controlled.
> - How should the ringbuffer be initilized when starting to play?
> - Any small program to have look into or a good inroduction into pthreads?.
You may look into my oss->jack wrapper. It's really simple and
emulation of blocking io does exactly what you need.
More information about the Linux-audio-dev