• 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: Signaling the end of audio conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Signaling the end of audio conversion


  • Subject: Re: Signaling the end of audio conversion
  • From: James McCartney <email@hidden>
  • Date: Wed, 15 Oct 2003 01:45:20 -0700

On Oct 14, 2003, at 11:55 PM, Stevo Brock wrote:

I've been using AudioConverterFillComplexBuffer for a while now and because of some bugs, just realized I have no idea exactly how to tell it I'm out of data. I've scoured the docs and sample apps and none of them seem to mention it or do it correctly. Here's the scenario...


A) set ioNumberDataPackets to 0, ioBufferList->...mDataByteSize to 0 and return noErr.

That is the correct way to signal end-of-stream.

Upon which fillBufferDataProc is called endlessly.

Your input proc may be called more times after you have signalled end of stream. You should keep returning zero.
What formats are you converting from, to and what sizes are you pulling for and supplying?

James McCartney email@hidden
Apple CoreAudio



--
--- james mccartney email@hidden <http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language
_______________________________________________
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.

  • Follow-Ups:
    • Re: Signaling the end of audio conversion
      • From: Stevo Brock <email@hidden>
References: 
 >Signaling the end of audio conversion (From: Stevo Brock <email@hidden>)

  • Prev by Date: Signaling the end of audio conversion
  • Next by Date: Re: magic cookies
  • Previous by thread: Signaling the end of audio conversion
  • Next by thread: Re: Signaling the end of audio conversion
  • Index(es):
    • Date
    • Thread