Re: [Sndobj-devel] does SndJackIO needs fixing on intel Mac?
Status: Abandoned
Brought to you by:
veplaini
From: sonify <so...@av...> - 2007-01-29 11:04:52
|
OK here's the rub: This simple python Jack- code works on intel Mac =20= OSX10.4.8: > import sndobj > > tab =3D sndobj.HarmTable() > osc =3D sndobj.Oscili(tab, 440, 16000) > oput =3D sndobj.SndJackIO('sine1') > oput.SetOutput(1, osc) > thread =3D sndobj.SndThread() > thread.AddObj(osc) > thread.AddObj(oput, sndobj.SNDIO_OUT) but > oput =3D sndobj.SndJackIO('sine1' , 1, osc) crackles audio through Jack then fails to play. NB Jack has a special setup routine on intel Macs. Form p12 of the Jack Manual > The Intel-based Macs present the Built-in Audio device to software =20 > applications as two > distinct half-duplex devices: an input device and an output device. =20= > For proper > functioning within Jack OS X on Intel Macs, these two devices must be > aggregated into a single one, using the Mac=92s Aggregate Device =20 > Editor, which is > housed within the Audio MIDI Setup application. -David On 28/01/2007, at 8:37 PM, Victor Lazzarini wrote: > Looks correct, but I am afraid I have not > tested Jack on OSX extensively. I assume your Jack > server is up and running. > > I'll look into the Jack thing on Monday. > > Regards > > Victor > >> >> Not sure if this is syntactically correct. Please check >> it. >> >>> # PySndObj Jack example >>> import sndobj >>> import time >>> tab =3D sndobj.HarmTable() >>> osc =3D sndobj.Oscili(tab, 440, 16000) >>> oput =3D sndobj.SndJackIO('sine') >>> oput.SetOutput(1, osc) >>> >>> # then either >>> thread =3D sndobj.SndThread() >>> thread.AddObj(osc) >>> thread.AddObj(oput, sndobj.SNDIO_OUT) >>> thread.ProcOn() >>> time.sleep(5) >>> thread.ProcOff() _____________________________ David Worrall: so...@av... |