• 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
ExtAudioFileWrite: insz - invalid number of frames? (iOS)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ExtAudioFileWrite: insz - invalid number of frames? (iOS)


  • Subject: ExtAudioFileWrite: insz - invalid number of frames? (iOS)
  • From: Bram Bos <email@hidden>
  • Date: Tue, 13 Dec 2016 17:12:57 +0000
  • Thread-topic: ExtAudioFileWrite: insz - invalid number of frames? (iOS)

I'm creating a perfectly looping audio file by writing the output buffers of an AudioUnit to an ExtAudioFile.

All buffers are 1024 frames, except the last one, which is 68 frames. 


I'm writing the buffers (in an offline rendering loop) to the file using


result = ExtAudioFileWrite( outputStreamFile, numberOfFrames, renderBufferList );


When attempting to write the last, smaller, buffer this function call returns "1768846202" which translates into "insz" indicating an invalid buffer size.


What exactly is invalid about this size? The buffer is big enough and the error message is returned regardless of whether I render exactly 68 frames or the usual 1024 frames. 


What am I missing here?

 _______________________________________________
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: ExtAudioFileWrite: insz - invalid number of frames? (iOS)
      • From: James McCartney <email@hidden>
  • Prev by Date: Re: How to safely dispose of audio converter
  • Next by Date: Why setting mData in render callback doesn't work, but memcpy does?
  • Previous by thread: Re: How to safely dispose of audio converter
  • Next by thread: Re: ExtAudioFileWrite: insz - invalid number of frames? (iOS)
  • Index(es):
    • Date
    • Thread