hi,
just to share some recent experiences with audio on the MacIntel.
1.
When using the CoreAudio stuff:
Note that the default in/out-put devices on the MacIntel
are two different devices. On the PPC Macs I encountered
so far, this was one device.
: getDevices ( -- inDeviceID outDeviceID )
4 dataSize !
kAudioHardwarePropertyDefaultInputDevice dataSize inDevice
_AudioHardwareGetProperty .OSStatus
kAudioHardwarePropertyDefaultOutputDevice dataSize outDevice
_AudioHardwareGetProperty .OSStatus
inDevice @[EMAIL PROTECTED]
outDevice @[EMAIL PROTECTED]
;
returns 2 different devices on MacIntel.
This means that you'll have to run two callbacks, one for
input and one for output.
something like this:
\ add callback and start
: startAudioIn
inDevice @[EMAIL PROTECTED]
*inProcess mailbox _AudioDeviceAddIOProc .OSStatus
inDevice @[EMAIL PROTECTED]
*inProcess _AudioDeviceStart .OSStatus ;
: startAudioOut
outDevice @[EMAIL PROTECTED]
*outProcess mailbox _AudioDeviceAddIOProc .OSStatus
outDevice @[EMAIL PROTECTED]
*outProcess _AudioDeviceStart .OSStatus ;
where *inProcess and *outProcess are the Forth callbacks running
in MachO.
BTW: an USB audio device like iMic has different in- out-put devices
regardless of Mac type.
2.
Introduced in MacOS 10.4: Aggregate Devices.
Some audio software I use don't like different in/out devices:
SuperCollider and pForth with PortAudio PABLIO.
The output works, but nothing gets in.
Remedy is to create an aggregate device. As I understand, this is a
device which encapsulates different in- out-put devices. The aggregate
device is seen as one in- out-put device.
-run Apple's 'Audio Midi Setup' application in /Applications/Utilities/
-choose 'Open Aggregate Device Editor' under Audio menu
-add a device for instance 'Aggregate Device'
-select the in- and out-put devices for this new device, by checking the
appropriate buttons.
-done
-select the 'Aggregate Device' as your default in- and out-put device.
in the main 'Audio Midi Setup' dialog or in the audio preference panel.
3.
Phil Burk's jSyn needs the universal libJSynV142.jnilib
Rosetta doesn't run PPC java native libs.
I use jSyn together with Jack Woehr's FortIsh Java Interpreter.
Fiji runs ok on the MacIntel with Java version 1.5.0_06, actually it's
window when ran as applet is normal again.
bye bye
roelf
(of course it didn't went so smooth to figure out was happening
when my stuff didn't run out of the box. Talking about a painless
transition, not ;-)


|