• 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: Stevo Brock <email@hidden>
  • Date: Wed, 15 Oct 2003 10:58:14 -0700

On Wednesday, October 15, 2003, at 01:45 AM, James McCartney wrote:

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.


Thanks, I have updated my app and things work better. However...

Upon which fillBufferDataProc is called endlessly.


I still see this when doing sample rate conversions.

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?

Doesn't seem to matter about bit depths, just any time I'm doing sample rate conversion. All the conversions I'm testing are integer (from 16/24/32 to 16/24/32) LPCM.


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.
_______________________________________________
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: James McCartney <email@hidden>
References: 
 >Re: Signaling the end of audio conversion (From: James McCartney <email@hidden>)

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