[linux-audio-dev] diskstream and jack

From: conrad berhörster <conrad.berhoerster@email-addr-hidden>
Date: Fri Jul 14 2006 - 12:30:16 EEST

Hello all,
i try to implement the reading of audiofiles with ringbuffers.
For this, i need two threads: a main process thread , which is triggered from
jack every 1024 samples for example. This reads from a ringbuffer.
And a worker thread which fills this ringbuffer.
Now the question:
- 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.
-Which size should the ringbuffer have.
- How should the ringbuffer be initilized when starting to play?
- Any small program to have look into or a good inroduction into pthreads?.
        
thanks c~
Received on Fri Jul 14 16:15:04 2006

This archive was generated by hypermail 2.1.8 : Fri Jul 14 2006 - 16:15:04 EEST