unable to get audio device name for Apogee ONE
unable to get audio device name for Apogee ONE
- Subject: unable to get audio device name for Apogee ONE
- From: Dave Fernandes <email@hidden>
- Date: Sat, 11 Feb 2012 13:51:21 -0500
When I connect Apogee ONE to the USB bus, my listener proc for kAudioHardwarePropertyDevices gets called, and I try to get information about the device. I am able to get the device UID and data sources, however, the following fails (called from main thread of a cocoa app):
AudioObjectPropertyAddress address =
{
kAudioObjectPropertyName,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster
};
size = sizeof(CFStringRef);
CFStringRef cfName = nil;
err = AudioObjectGetPropertyData(devices[i], &address, 0, NULL, &size, &cfName);
The error code returned is err = 2003329396 = 'that'
*** Can anyone tell me what this error code means? I can't find it in any header.
When the ONE is plugged in, I also get the following appearing on the console:
Message response timed out
Plug in failed to register with daemon
Message response timed out
Message response timed out
Error a response was received for an unknown message!!!
ERROR Response received from PID:53 To message From (me?): 436 Type:0x2 UID:0x1
Error a response was received for an unknown message!!!
ERROR Response received from PID:53 To message From (me?): 436 Type:0x4 UID:0x2
Error a response was received for an unknown message!!!
ERROR Response received from PID:53 To message From (me?): 436 Type:0x6 UID:0x3
It looks like the device or driver is taking too long to respond, and my code to get the device name is being called before it is ready. In fact, if I wait a second or two then I can successfully get the device name.
*** For some reason, however, System Preferences and Audio MIDI Setup are both able to reliably get the name without any apparent delay. So what are they doing that I am not? Should I be listening for some property other than kAudioHardwarePropertyDevices? Or checking some property other than kAudioObjectPropertyName?
Thanks in advance for any suggestions.
NOTE: this is on 10.7.3 with August 2011 driver from Apogee. 2007 MacBook Pro (2.2 GHz Core 2 Duo);
Dave
_______________________________________________
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