UInt32
propsize;
AudioObjectPropertyAddress aopa;
aopa.mSelector = kAudioHardwarePropertyDevices;
aopa.mScope = kAudioObjectPropertyScopeGlobal;
aopa.mElement = kAudioObjectPropertyElementMaster;
verify_noerr(AudioObjectGetPropertyDataSize(kAudioObjectSystemObject, &aopa, 0,
NULL, &propsize));
int nDevices =
propsize / sizeof(AudioDeviceID);
AudioDeviceID *devids = new AudioDeviceID[nDevices];
verify_noerr(AudioObjectGetPropertyData(kAudioObjectSystemObject, &aopa, 0,
NULL, &propsize, devids));
Hope
this helps !
Best
regards,
Daniel Tapie
On 6 Jan 2012, at 15:36, John Allsup wrote:
Hi All,
Just rejoined this list after a long time doing things not
involving
CoreAudio.
I note in Snow Leopard that the AudioStreamGetProperty
function and
friends are deprecated. What is the new way of dealing
with audio devices?
I am trying to write a simple utility that changes a
devices output bit
depth (since Snow Leopard has this nice way of defaulting
my USB
monitors interface to 8bit when 16bit is available). Can
anybody
suggest the correct way of going about this?
Thanks,
John
_______________________________________________
Do not post admin requests to the list. They will be
ignored.
Coreaudio-api mailing list (
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden