AudioQueueSetProperty Channel Layout
AudioQueueSetProperty Channel Layout
- Subject: AudioQueueSetProperty Channel Layout
- From: Dan Thompson <email@hidden>
- Date: Fri, 23 Mar 2012 14:15:31 -0700
Hi Everyone,
I'm trying to route a stereo audio source to the rear channels, and I'm having no luck - all audio ceases after the AudioQueueSetProperty call.
Eventually, I just gave up doing that and ended up just trying to set the stream to "stereo", and even that causes all audio to stop:
AudioChannelLayout L;
memset(&L, 0, sizeof(L));
// Just simply try and tell the queue its stereo.
L.mChannelLayoutTag = kAudioChannelLayoutTag_Stereo;
// If this call is commented out, audio plays fine, with this call, audio ceases. The return value indicates success.
AudioQueueSetProperty(pDriver->m_Queue, kAudioQueueProperty_ChannelLayout, &L, sizeof(L));
In addition, if I try to do an AudioQueueGetProperty() on the queue to see what it thinks its layout is (without trying to set it), it always returns a failure indicating a nonexistent property.
Any ideas? I've googled all over the place and from the few resources I've found it really seems like I'm writing the code correctly. Does the queue need to be in a specific state in order to work? Anything? Bueller?
Thanks,
Dan
_______________________________________________
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