Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5548] RE: CS5 blocking audio via pa

Date2004-12-18 18:57
From"gogins@pipeline.com"
Subject[CSOUND-DEV:5548] RE: CS5 blocking audio via pa
On Windows, I wrote some helper code (in InOut/pa_blocking.c) to use
PortAudio's callback-driven audio (which is all that works with ASIO on
Windows) and turn it into what looks like blocking audio. 

Note that the locking/unlocking primitives are abstracted in the Csound API
calls csoundNotifyThreadLock and csoundWaitThreadLock. Probably all you
need to do is provide a Mac implementation in Top/threads.c of these
functions, using Mac system calls instead of the Windows CreateEvent,
WaitForSingleEvent, and SetEvent system calls, and of course change
SConstruct to use pa_blocking.c on the Mac.

If this is what you are doing and you are still getting stutters, try
changing the order of lock and unlock on the Mac.


Original Message:
-----------------
From:  jpff@codemist.co.uk
Date: Sat, 18 Dec 2004 17:16:06 +0000
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:5546] CS5 blocking audio via pa


I have been attempting to use this on the Mac, but it stutters
something horrid.  Does it work on Windows?  Any suggestions as to
what could be wrong?
==John ffitch


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .