• 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: How to choose the AudioQueue output device ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to choose the AudioQueue output device ?


  • Subject: Re: How to choose the AudioQueue output device ?
  • From: William Stewart <email@hidden>
  • Date: Wed, 7 Nov 2007 15:54:12 -0800

You have to pass all arguments to CoreAudio APIs by reference, not by value.

So:

CFStringRef devUID = .. get the CF string for the device UID
AudioQueueSetProperty(myInfo.mQueue, kAudioQueueProperty_CurrentDevice, &devUID, sizeof(CFStringRef));


Bill

On Nov 7, 2007, at 9:17 AM, Colin wrote:

Hi,

I'm trying to use another output than the default one for an AudioQueue, using AudioQueueSetProperty and the kAudioQueueProperty_CurrentDevice property (which is said to be read/ write in the doc and accepting a CFStringRef as parameter).

// hardcoded string for testing purposes
AudioQueueSetProperty(myInfo.mQueue, kAudioQueueProperty_CurrentDevice,
CFSTR("AppleHDAEngineOutput:0"), sizeof(CFStringRef));


It looks like from the console that it is sending a wrong message :

*** +[NSCFString length]: unrecognized selector sent to class 0xa00004a0


Any idea ?

thanks,
--
Colin


_______________________________________________ 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

_______________________________________________ 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
  • Follow-Ups:
    • Re: How to choose the AudioQueue output device ?
      • From: Colin <email@hidden>
References: 
 >How to choose the AudioQueue output device ? (From: Colin <email@hidden>)

  • Prev by Date: AudioConverterFillComplexBuffer and '!buf' error
  • Next by Date: Re: AudioConverterFillComplexBuffer and '!buf' error
  • Previous by thread: How to choose the AudioQueue output device ?
  • Next by thread: Re: How to choose the AudioQueue output device ?
  • Index(es):
    • Date
    • Thread