[chuck-users] ChucK w/Lion and many audio devices, was: SUCCESS! Re: Most recent Chuck for Lion?

Charles Turner vze26m98 at optonline.net
Mon Mar 5 08:11:54 EST 2012


On Mar 4, 2012, at 4:02 PM, Spencer Salazar wrote:

> The special Lion build of chuck actually has an off-by-one error when
> enumerating available audio devices via chuck --probe. So in the
> --probe output below, basically dac0 should be dac1, dac1 should be
> dac2, etc -- it should start counting at 1 instead of 0. This has been
> fixed in SVN, but an update to the special Lion build hasn't been
> issued yet.

Hi Spencer-

Yes. If in the current release the dac/adc indexes are increased by 1, everything works fine, even the 1-2 connection.

I compiled and ran the recent SVN and it seems to crash at the end of a shred with a bus error. This didn't happen with the March 23rd version. I understand it's the SVN, and there are no guarantees that the code there isn't broken. ;-)

Thanks, Charles

> etla:/Volumes/Namring/Documents/ChucK$ chuck --verbose --in2 --out2 --adc0 --dac2 foo.ck
> [chuck]:(2:SYSTEM): setting log level to: 5 (INFORM)...
> [chuck]:(2:SYSTEM): initializing virtual machine...
> [chuck]:(2:SYSTEM):  | behavior: HALT
> [chuck]:(2:SYSTEM):  | locking down special objects...
> [chuck]:(2:SYSTEM):  | allocating shreduler...
> [chuck]:(2:SYSTEM):  | allocating messaging buffers...
> [chuck]:(2:SYSTEM):  | real-time audio: YES
> [chuck]:(2:SYSTEM):  | mode: CALLBACK
> [chuck]:(2:SYSTEM):  | sample rate: 44100
> [chuck]:(2:SYSTEM):  | buffer size: 256
> [chuck]:(2:SYSTEM):  | num buffers: 8
> [chuck]:(2:SYSTEM):  | devices adc: 0 dac: 0 (default 0)
> [chuck]:(2:SYSTEM):  | adaptive block processing: 0
> [chuck]:(2:SYSTEM):  | channels in: 2 out: 2
> [chuck]:(2:SYSTEM): initializing compiler...
> [chuck]:(3:SEVERE):  | initializing type checker...
> [chuck]:(3:SEVERE):  |  | adding base classes...
> [chuck]:(3:SEVERE):  |  |  | class 'object'
> [chuck]:(3:SEVERE):  |  |  | class 'array'
> [chuck]:(3:SEVERE):  |  |  | class 'string'
> [chuck]:(3:SEVERE):  |  |  | class 'ugen'
> [chuck]:(3:SEVERE):  |  |  | class 'uanablob'
> [chuck]:(3:SEVERE):  |  |  | class 'uana'
> [chuck]:(3:SEVERE):  |  |  | class 'shred'
> [chuck]:(3:SEVERE):  |  |  | class 'event'
> [chuck]:(3:SEVERE):  |  |  | class 'io'
> [chuck]:(3:SEVERE):  |  |  | class 'fileio'
> [chuck]:(3:SEVERE):  |  |  | class 'chout'
> [chuck]:(3:SEVERE):  |  |  | class 'cherr'
> [chuck]:(3:SEVERE):  |  |  | class 'class'
> [chuck]:(3:SEVERE):  | initializing emitter...
> [chuck]:(3:SEVERE):  | loading built-in modules...
> [chuck]:(3:SEVERE):  |  | module osc...
> [chuck]:(3:SEVERE):  |  | module xxx...
> [chuck]:(3:SEVERE):  |  | module filter...
> [chuck]:(3:SEVERE):  |  | module STK...
> [chuck]:(3:SEVERE):  |  | module xform...
> [chuck]:(3:SEVERE):  |  | module extract...
> [chuck]:(3:SEVERE):  |  | class 'machine'...
> [chuck]:(3:SEVERE):  |  | class 'std'...
> [chuck]:(5:INFORM):  |  | initializing KBHitManager...
> [chuck]:(5:INFORM):  |  | starting kb loop...
> [chuck]:(3:SEVERE):  |  | class 'math'...
> [chuck]:(3:SEVERE):  |  | class 'opsc'...
> [chuck]:(3:SEVERE):  | loading chugins
> [chuck]:(5:INFORM):  |  | unable to open directory '/usr/lib/chuck', ignoring for chugins
> [chuck]:(5:INFORM):  |  | unable to open directory '/Library/Application Support/ChucK/ChuGins', ignoring for chugins
> [chuck]:(5:INFORM):  |  | unable to open directory '~/Library/Application Support/ChucK/ChuGins', ignoring for chugins
> [chuck]:(2:SYSTEM): type dependency resolution: MANUAL
> [chuck]:(2:SYSTEM): initializing synthesis engine...
> [chuck]:(3:SEVERE):  | initializing 'dac'...
> [chuck]:(3:SEVERE):  | initializing 'adc'...
> [chuck]:(3:SEVERE):  | initializing 'blackhole'...
> [chuck]:(2:SYSTEM):  | initializing 'real-time' audio...
> [chuck]:(3:SEVERE):  | allocating buffers for 256 x 2 samples...
> [chuck]:(3:SEVERE): pre-loading ChucK libs...
> [chuck]:(3:SEVERE): starting compilation...
> [chuck]:(5:INFORM): setting thread priority to: 60...
> [chuck]:(2:SYSTEM): starting listener on port: 8888...
> [chuck]:(2:SYSTEM): running virtual machine...
> [chuck]:(3:SEVERE):  | initializing audio buffers...
> [chuck]:(3:SEVERE):  | virtual machine running...
> [chuck]:(3:SEVERE): starting real-time audio...
> [chuck]:(5:INFORM): setting thread priority to: 60...
> [chuck]:(3:SEVERE): starting real-time watch dog processs...
> [chuck]:(5:INFORM):  | watchdog timeout: 0.500000::second
> [chuck]:(5:INFORM):  | watchdog thread priority: 60
> [chuck]:(5:INFORM):  | watchdog countermeasure priority: 10
> [chuck]:(5:INFORM): setting thread priority to: 60...
> [chuck]:(2:SYSTEM): virtual machine stopped...
> Bus error: 10
> etla:/Volumes/Namring/Documents/ChucK$ chuck


More information about the chuck-users mailing list