Re: Audio converting code working on 10.3 and 10.4 - broken on 10.5
Re: Audio converting code working on 10.3 and 10.4 - broken on 10.5
- Subject: Re: Audio converting code working on 10.3 and 10.4 - broken on 10.5
- From: James McCartney <email@hidden>
- Date: Thu, 11 Oct 2007 11:37:18 -0700
On Oct 11, 2007, at 3:47 AM, Mattias Arrelid wrote: On 10/10/07, james mccartney <email@hidden> wrote:
On Oct 10, 2007, at 10:00 AM, Mattias Arrelid wrote: Hi everyone,
We recently installed the latest developer preview on one of the machines at work to test our application on 10.5 before it officially ships. Everything works as expected, except one part of the audio converter that converts compressed data. We're using AudioConverterFillComplexBuffer and it's working flawlessly under 10.3 and 10.4, but on 10.5 each call to this function yields the error code "561015652". Does anyone have any suggestions what we might be doing wrong?
561015652 == '!pkd'
AudioConverter.h kAudioConverterErr_RequiresPacketDescriptionsError = '!pkd',
You are passing a NULL AudioStreamPacketDescriptions pointer for a format whose AudioStreamBasicDescription has an mBytesPerPacket of zero.
Aha, didn't see that one. It has been working without flaws on 10.3 and 10.4, but 10.5 didn't let me convert anything unless I allocated an AudioStreamPacketDescription and filled it with the offset and current length, and then told the AudioConverterComplexInputDataProc's outDataPacketDescription about this. Thanks for the fast reply, now we're up and running again!
Regards / Mattias
What formats are you converting?
|
_______________________________________________
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