Re: AudioConverterGetProperty and kAudioConverterChannelMap
Re: AudioConverterGetProperty and kAudioConverterChannelMap
- Subject: Re: AudioConverterGetProperty and kAudioConverterChannelMap
- From: Doug Wyatt <email@hidden>
- Date: Sun, 29 May 2005 08:02:23 -0700
On May 28, 2005, at 10:41, Jake Goulding wrote:
I am involved with a project that makes use of CoreAudio to encode
raw PCM into various formats. The channel layout for the source
doesn't map directly to the layout for the CoreAudio encoder, so I
was using AudioConverterGetProperty with kAudioConverterChannelMap
to set the layout of the streams.
Steps I've followed:
1) Make two ASBDs with 6 channels
2) Make a new AudioConverter to convert between the two
3) Ask for the channel map of the AudioConverter
[continue converting as usual]
audio comes out garbled (clicking in the channels)
If I remove step 3: audio is fine.
Any ideas?
How big is the memory chunk you're passing to
AudioConverterGetProperty? Safest is to call
AudioConverterGetPropertyInfo first to find out how big a buffer you
need to allocate and pass to GetProperty. If the buffer you're
passing isn't large enough, memory past the end of it will get
corrupted.
But don't you want to be calling AudioConverterSetProperty to
*change* the channel map?
Doug
_______________________________________________
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