• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: crashing in calls to AudioConverter on 10.3.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: crashing in calls to AudioConverter on 10.3.9
      • From: Doug Wyatt <email@hidden>
References: 
 >crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: William Stewart <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: William Stewart <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: William Stewart <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: William Stewart <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Christopher Ashworth <email@hidden>)
 >Re: crashing in calls to AudioConverter on 10.3.9 (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: crashing in calls to AudioConverter on 10.3.9
  • Next by Date: Re: Controlling input volume while recording
  • Previous by thread: Re: crashing in calls to AudioConverter on 10.3.9
  • Next by thread: Re: crashing in calls to AudioConverter on 10.3.9
  • Index(es):
    • Date
    • Thread