Re: How to choose the AudioQueue output device ?
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