• 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
PlayAudioFileLite example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PlayAudioFileLite example


  • Subject: PlayAudioFileLite example
  • From: David Cohn <email@hidden>
  • Date: Thu, 19 Jul 2007 18:41:50 -0700

Hey all,

I'm not an audio guru, but I've been assigned the task of getting a pre-existing audio library to do fairly simple playback and recording using CoreAudio. The "PlayAudioFileLite" example in the Apple sample code seems to be the closest fit to what I'm trying to do, but the code is stamped with the dire warning:

Important: The information in this document is Not Recommended and should not be used for new development

The code indeed has some bugs, lacks good error checking, and isn't written with the best style (at least, not standard Apple stuff), but is the basic methodology somehow problematic? Basically, it sets up an AudioConverter, then in the renderCallback uses AudioConverterFillComplexBuffer to call another callback to copy data into the ioData buffers.

What, if any, are the problems of using this approach? And what are the preferred alternatives? Even for such a simple path, are AUGraphs the way to go?

Thanks for the assist,
--Dave

_______________________________________________
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: PlayAudioFileLite example
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Conversion to 3gp
  • Next by Date: Re: HALPlugIn::Initialize appears to be freezing
  • Previous by thread: Re: Conversion to 3gp
  • Next by thread: Re: PlayAudioFileLite example
  • Index(es):
    • Date
    • Thread