Re: AudioQueue - Setting channel layout
Re: AudioQueue - Setting channel layout
- Subject: Re: AudioQueue - Setting channel layout
- From: Richard Bannister <email@hidden>
- Date: Mon, 10 Aug 2009 18:18:59 +0100
Hi Doug,
On 10 Aug 2009, at 17:21, Doug Wyatt wrote:
kAudioQueueErr_InvalidPropertySize = -66683,
@constant kAudioQueueErr_InvalidPropertySize The size of the
specified property is invalid.
How are you computing the size of your audio channel layout?
Initially I tried as per the sample code on apple.com - but now I'm
doing:
sizeof(AudioChannelLayout) + (sizeof(AudioChannelDescription) *
(audio_channels-1));
Both gave the same result - 172 bytes for an eight channel sound.
kAudioQueueErr_InvalidProperty = -66684,
I think this simply means that in this case you haven't set a
channel layout, so there isn't one to get.
Ah okay, this was an experiment on my part - I wanted to read out
whatever size the code was expecting.
All this said, I have a suspicion that setting the channel layout on
a queue using PCM will have no effect (6998734). Sorry. The
workaround for that would be to manipulate your data's channel order
to match that of the default output device. You can do that with
AudioConverter, or, if you happen to be using ExtAudioFile, there.
In this particular case I'm using an eight channel audio stream, but
I'm only hearing channels one and two when I play back. Expected on a
two speaker system perhaps, but not what I'm accustomed to from the
Sound Manager which mapped 1/3/5/7 to left and 2/4/6/8 to right. Is
there any easy way for me to replicate this behaviour short of doing
the mix down myself?
Thanks
Richard
_______________________________________________
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