Re: Crashing in AudioConverterConvertBuffer
Re: Crashing in AudioConverterConvertBuffer
- Subject: Re: Crashing in AudioConverterConvertBuffer
- From: Robert Grant <email@hidden>
- Date: Thu, 14 Aug 2003 10:24:35 -0400
James and Phillippe,
Thanks for steering me onto the right path - I had assumed that because
I wasn't doing sample rate conversion I'd be able to use the simpler
ConvertBuffer method...
In the end the FillComplexBuffer method wasn't that far different from
the QuickTime ExportMovieFromProcedures approach and wasn't too arcane
- it just looks like in the headers :-).
I have a feeling the CoreAudio Swiki could do with some additions in
this area :-)
I'll post my AIFF approach shortly.
On a separate note - QuickTime has a hard time playing > 48000 Hz audio
files, but iTunes can manage it (even though it reports a 96 KHz file
as having a sample rate of 65.535 KHz :-)) It certainly sounds correct
but perhaps it's downsampling to 65.535? My ears certainly can't tell!
Thanks,
Robert.
On Thursday, August 14, 2003, at 02:55 AM, James McCartney wrote:
On Wednesday, August 13, 2003, at 01:48 PM, Robert Grant wrote:
Here's what I think it should be for 2048 frames of non-interleaved
stereo samples:
0 ... 2047 left channel samples
2048... 4095 right channel samples
Noninterleaved data go in separate buffers in an AudioBufferList.
AudioConverter ConvertBuffer doesn't handle AudioBufferLists so you
can't use it.
AudioConverterFillComplexBuffer is what you should use.
James McCartney email@hidden
Apple CoreAudio
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.