Re: crashing in calls to AudioConverter on 10.3.9
Re: crashing in calls to AudioConverter on 10.3.9
- Subject: Re: crashing in calls to AudioConverter on 10.3.9
- From: Christopher Ashworth <email@hidden>
- Date: Tue, 28 Mar 2006 21:47:01 -0500
On Mar 28, 2006, at 9:03 PM, Doug Wyatt wrote:
OSStatus MyComplexInputDataProc)(UInt32 *ioNumberDataPackets ...
AudioBufferList *ioData ...)
{
AudioBufferList abl;
abl.mNumberBuffers = 1;
abl.mBuffers[0].mNumberChannels = 1;
abl.mBuffers[0].mData = <something you malloc'd, probably earlier>;
abl.mBuffers[0].mDataByteSize = <the number of bytes you want to
get back from the file>;
AudioFileReadPackets( ... &abl ...);
*ioData = abl;
*ioNumberDataPackets = <number of frames>;
}
Er, now I'm *really* confused.
In this documentation:
http://developer.apple.com/documentation/MusicAudio/Reference/
CAAudioTooboxRef/AudioFile/Functions/Functions.html#//apple_ref/c/
func/AudioFileReadPackets
The AudioFileReadPackets function does not appear to expect a pointer
to an audio buffer list. (The description of the buffer just
describes it as being a flat block of user allocated memory.)
Moreover, in /Developer/Examples/CoreAudio/SimpleSDK/CovertFile/UseAC-
AF.cpp, the call to AudioFileReadPackets on line 87 is passing a
simple ol' char *, not an AudioBufferList pointer.
Is that a typo above, or does it actually expect a pointer to an
audio buffer list?
thanks for your patience,
Chris
_______________________________________________
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