• 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: Passthru AudioUnit that saves its input to file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passthru AudioUnit that saves its input to file?


  • Subject: Re: Passthru AudioUnit that saves its input to file?
  • From: Craig Bakalian <email@hidden>
  • Date: Sat, 28 Feb 2004 01:56:53 -0500

On Feb 28, 2004, at 1:00 AM, email@hidden wrote:

Could you save up enough buffers and then do your write to the file at
callback time, or is an expensive operation like writing to the file a bad
idea while handling a buffer of audio?

You need to read Examples/CoreAudio/Services/DiskWriterAUGraph. I know
it isn't an AudioUnit, but the same principle resides in its machinery. It creates
a file, and writes bytes to it while it is rendering AudioBuffers, with CAP Threads
all over the place. I reworked it, made it Objective C, took the CAPThreads out,
and wrote buffers to memory and then wrote bytes to file. It works, but I am still
testing it.

I don't know about writing a unit like this in a night or two. It took me longer : >)
Craig Bakalian
www.eThinkingCap.com
_______________________________________________
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.


  • Prev by Date: Passthru AudioUnit that saves its input to file?
  • Next by Date: Re: AU: Vector Size?
  • Previous by thread: Passthru AudioUnit that saves its input to file?
  • Next by thread: Re: Passthru AudioUnit that saves its input to file?
  • Index(es):
    • Date
    • Thread