Re: [Sndobj-devel] does SndJackIO needs fixing on intel Mac?
Status: Abandoned
Brought to you by:
veplaini
From: Victor L. <Vic...@nu...> - 2007-01-29 11:46:57
|
Perhaps it's a matter of setting buffersizes to match. Crackling audio is generally a sympton of some mismatch somewhere. Victor At 11:04 29/01/2007, sonify wrote: >OK here's the rub: This simple python Jack- code works on intel Mac >OSX10.4.8: > >>import sndobj >> >>tab = sndobj.HarmTable() >>osc = sndobj.Oscili(tab, 440, 16000) >>oput = sndobj.SndJackIO('sine1') >>oput.SetOutput(1, osc) >>thread = sndobj.SndThread() >>thread.AddObj(osc) >>thread.AddObj(oput, sndobj.SNDIO_OUT) > > >but >>oput = sndobj.SndJackIO('sine1' , 1, osc) > >crackles audio through Jack then fails to play. > > >NB Jack has a special setup routine on inte Macs. >Form p12 of the Jack Manual >>The Intel-based Macs present the Built-in Audio device to software >>applications as two >>distinct half-duplex devices: an input device and an output device. For >>proper >>functioning within Jack OS X on Intel Macs, these two devices must be >>aggregated into a single one, using the Mac's Aggregate Device 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 = sndobj.HarmTable() >>>>osc = sndobj.Oscili(tab, 440, 16000) >>>>oput = sndobj.SndJackIO('sine') >>>>oput.SetOutput(1, osc) >>>> >>>># then either >>>>thread = sndobj.SndThread() >>>>thread.AddObj(osc) >>>>thread.AddObj(oput, sndobj.SNDIO_OUT) >>>>thread.ProcOn() >>>>time.slee (5) >>>>thread.ProcOff() > > > > >_____________________________ >David Worrall: <mailto:so...@av...>so...@av... > > Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |