[linux-audio-dev] Python

Paul Winkler pw_lists at slinkp.com
Mon Feb 5 15:05:24 UTC 2007


On Mon, Feb 05, 2007 at 12:26:09PM +0100, Lars Luthman wrote:
> On Sat, 2007-02-03 at 16:28 -0200, Silver Rock wrote:
> > I've been studiyng python and some things are not that clear:
> > 
> > 1- Is python too slow to efectivelly communicate with Jack? PyJack did
> > not seem to work right, so i tried PySndObj's JackIO object. It did
> > not behave as good as with connection with ALSA.
> 
> Depends on what you mean. Writing the actual process() callback in
> Python is probably not a good idea, not as much because of the speed
> (although you probably wouldn't want to use Python if you want to
> squeeze as much processing as possible out of the computer) but because
> of the unpredictability caused by the builtin garbage collection and
> memory management. Then again, I'm no Python expert. Maybe it's possible
> to tweak the interpreter so it can run in hard realtime.

Highly doubtful. Python is fantastic for lots of jobs. This isn't one of
them.

-- 

Paul Winkler
http://www.slinkp.com



More information about the Linux-audio-dev mailing list