• 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
Re: Audio devices not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio devices not updating


  • Subject: Re: Audio devices not updating
  • From: "Paul Sanders" <email@hidden>
  • Date: Mon, 15 Mar 2010 18:08:03 -0000

I do the following and it seems to work.  I don't have a Digi 003, but I have tested this with the Griffin iMic, the NAD PP-3 (aka USB Audio CODEC), a $10 USB Skype phone and JackOSX (which is software).  I poll for changes, rather than register a callback (tsk, tsk).
 
// Return a list of installed audio devices.  Caller must free.
static AudioDeviceID *get_device_list (int *device_count)
{
    UInt32 nbytes;
    OSStatus status = AudioHardwareGetPropertyInfo (kAudioHardwarePropertyDevices, &nbytes, NULL);
    assert (status == noErr);
    *device_count = nbytes / sizeof (AudioDeviceID);
//  printf ("%d audio devices found\n", *device_count);
    AudioDeviceID *device_list = (AudioDeviceID *) malloc (nbytes);
    status = AudioHardwareGetProperty (kAudioHardwarePropertyDevices, &nbytes, device_list);
    assert (status == noErr);
    return device_list;
}
 
If your code looks similar, it might be an issue specific to the Digi.  Download JackOSX and try it with that (the JackRouter 'device' comes and goes when you start and stop the Jack server).
 
HTH - Paul Sanders.
 
----- Original Message -----
From: Andrew Hughes
To: email@hidden
Sent: Monday, March 15, 2010 5:48 PM
Subject: Audio devices not updating

I'm writing what I hoped would be a simple program that puts a menu in the status bar that allows me to quickly set the default system output device. However, the list of available output devices is not updating. I am developing on a new iMac and switching between the computer's speakers and a Digi 003 rack.
...
 _______________________________________________
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

References: 
 >Audio devices not updating (From: Andrew Hughes <email@hidden>)

  • Prev by Date: Re: Coreaudio-api Digest, Vol 7, Issue 94
  • Next by Date: How to use iLBC on iPhone
  • Previous by thread: Audio devices not updating
  • Next by thread: Re: Audio devices not updating
  • Index(es):
    • Date
    • Thread