AudioCodec, AudioFileWritePackets, and pck?
AudioCodec, AudioFileWritePackets, and pck?
- Subject: AudioCodec, AudioFileWritePackets, and pck?
- From: Mike Erickson <email@hidden>
- Date: Fri, 5 May 2006 15:47:24 -0400
I have written an audio codec component that uses lame to encode PCM
to mp3. I have been using afconvert and ConvertFile from the samples
in the SDK to test.
I can write the lame encoded data to the 'caff' file type using both
test programs and the data is written and encoded correctly and
QuickTime Player is able to properly play it back.
However, when I tell the test tools to write the encoded data to an
'MPG3' file type, the call in afconvert to AudioFileWritePackets
fails with the error 'pck?'.
The call in ConvertFile to ExtAudioFileWrite fails with the same
error. (I changed the build so it would use that API)
Does the system-supplied 'MPG3' AudioFile component support the
writing of the '.mp3' data format, or, as I suspect, just the reading
of '.mp3' data?
Do I need to write my own AudioFile component to write the encoded data?
Are magic cookies involved?
Mike
_______________________________________________
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