| John, I'm pretty sure that would work. The code in pa_blocking.c could be
extended to handle it (the mutexes are already there).
Original Message:
-----------------
From: jpff@codemist.co.uk
Date: Thu, 30 Dec 2004 10:46:27 +0000
To: csound-dev@eartha.mills.edu, csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:5602] Re: cs5 OS X audio issues (a long one)
Victor, you disappoint me! I thought you were an academic and
academics do snot have holidays, just days when the students have
vacated the university....
Thanks for working that out. I had got as far as realising that the
pa-blocking stuff was synchronous with krate, but then could not see
how it worked on any other platform.
Suppose the callback thread waited on a mutex until there was enough
audio before releasing it, and the play code could release the mutex
when there was enough. Would be easier if the audio buffers were a
multiple of the krate, but not essential. Would that work?
==John ffitch
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ . |