• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
unable to get audio device name for Apogee ONE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Max simultaneous source count with Remote I/O Callback much lower than with OpenAL
  • Next by Date: Convolution with large filters?
  • Previous by thread: RE: Max simultaneous source count with Remote I/O Callback much lower than with OpenAL
  • Next by thread: Convolution with large filters?
  • Index(es):
    • Date
    • Thread