Re: Apple lossless conversion failure
Re: Apple lossless conversion failure
- Subject: Re: Apple lossless conversion failure
- From: Harry Plate <email@hidden>
- Date: Wed, 04 May 2011 12:22:43 -0700
> From: tahome izwah <email@hidden>
>
> Could you upload such a file somewhere?
>
Hmmm. Probably not - this particular eg appears to be copyrighted material.
I am going to see if I can construct a piece of media that would be sharable, however.
In the meantime, using Xcode/gdb, I walked the call chain from my callback proc to see where the '!dat' error
was being defined.
I made it into ACAppleLosslessDecoder::AppendInputData when it appears things awry.
I should note that I am returning a packet description array of data to CodecConverter::CallInputProc() - that seems to be a critical step in dealing w/ VBR packets:
...
if (outDataPacketDescription)
{
if (afio->pktDescs)
*outDataPacketDescription = afio->pktDescs;
else
*outDataPacketDescription = NULL;
}
...
[I am literally using /Developer/Examples/CoreAudio/SimpleSDK/ConvertFile:UseAC-AF.cpp::EncoderDataProc()]
TIA,
-harry
>
>
> 2011/5/4 Harry Plate <email@hidden>:
>> I am (finally) moving to Core Audio to replace some old Sound Manager code that
>> would extract/convert audio channels for our application. This conversion to Core Audio has
>> been pretty painless for the most part; except, I am running into issues w/ compressed audio
>> formats.
>>
>> The code that I am using is based on the Core Audio "ConvertFile" example
>> [UseAC-AF.cpp]. I was able to use alot of that code verbatim.
>>
>> I am being tripped up on a case w/ a .caf file ['alac', 6ch, 48kHz, 24b]. My
>> call to AudioConverterFillComplexBuffer() is returning '!dat'. My callback proc
>> read a single packet successfully.
>>
>> The same .caf file using ConvertFile also results in a failure, but in the read callback
>> proc; ie, AudioFileReadPackets() returns 'wht?'
>>
>> I'm stymied. Any comments/suggestions to get to the bottom of this failure?
>>
>> -harry _______________________________________________
>
_______________________________________________
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