• 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: kExtAudioFileError_AsyncWriteBufferOverflow on iPad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kExtAudioFileError_AsyncWriteBufferOverflow on iPad


  • Subject: Re: kExtAudioFileError_AsyncWriteBufferOverflow on iPad
  • From: Rick Cohen <email@hidden>
  • Date: Tue, 05 Apr 2011 12:53:31 -0400

[iPad1, iOS 4.3]

Hello Aran and Brian,

I am also seeing the same thing in my iPad app, encoding to AAC.

Brian, are you suggesting that inside the render callback we should
have a loop that calls ExtAudioFileWriteAsync multiple times?  How
many frames do you suggest that we write?  In my app the typical
number seems to be 1024 frames per callback.

I tried using the kExtAudioFileProperty_IOBufferSizeBytes property to
increase the size of the IO Buffer from 64K (default size) to 128K,
but this failed in the thread that ExtAudioFile uses to write the data
to the file.

Thanks in advance for any advice!

     - Rick

On Sat, Jan 22, 2011 at 2:25 PM, Brian Willoughby <email@hidden> wrote:
> Check the size of your buffer.  I believe that I may have run into the same
> error and had to fix it by reducing my buffer size, sometimes by looping
> over a larger buffer and writing smaller chunks to ExtAudioFile.  As soon as
> I sent in a smaller buffer, the error stopped, and the resulting file had no
> problems.
>
> Brian Willoughby
> Sound Consulting
>
> On Jan 22, 2011, at 02:40, Aran Mulholland wrote:
>>
>> anyone got any answers on this?
>>
>> On Wed, Jan 5, 2011 at 9:16 PM, Aran Mulholland <email@hidden>
>> wrote:
>>>
>>> I am getting an kExtAudioFileError_AsyncWriteBufferOverflow (-66570)
>>> when using an ExtAudioFileWriteAsync from a render callback. I only
>>> get the error when I am encoding the Audio (AAC). If i record straight
>>> pcm (wav) its all good. In the simulator all works fine as well. Am I
>>> simply running out of processor power on the device (iPad)? I thought
>>> there was a hardware encoder, is there any other considerations I
>>> should take into account when doing this?
>>
 _______________________________________________
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: kExtAudioFileError_AsyncWriteBufferOverflow on iPad
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: Re: Stereo > Mono Downmixing on iOS
  • Next by Date: Default to Audio Unit "controls" view in Logic Pro?
  • Previous by thread: Re: AAC hardware encoder in ExtAudioFile
  • Next by thread: Re: kExtAudioFileError_AsyncWriteBufferOverflow on iPad
  • Index(es):
    • Date
    • Thread