• 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: Need Help! Saving AU result.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help! Saving AU result.


  • Subject: Re: Need Help! Saving AU result.
  • From: email@hidden
  • Date: Fri, 01 Aug 2003 17:22:20 -0700

"" writes:
> I tried to capture audio directly from a microphone and to process
> the signal through several effects. At the end there is the Default
> Output Unit and it works well. Now I'd like to save my result. I
> tried to attach a notification by using AudioUnitAddRenderNotify and
> setting a new IOProc in order to get the ioData (AudioBufferList *),
> I mean the IOProc is different from the one I used to feed the
> converter unit at the beginning of the chain of the audio units,
> it's role is simply to copy the ioData->mBuffers[i].mData to a new
> location.

Ouroboros does something like this. Though it code definately be made
more robust, you can look at the source for a starting point:

http://www.mat.ucsb.edu/~c.ramakr/illposed/ouroboros.html

I do pretty much what you describe -- I added a render notify proc to
the output unit, and on a post render callback, i write the contents
of the AudioBufferList into a ring buffer. I have another thread
running which reads from the ring buffer and writes to disk (though i
use libsndfile, not the AudioFile API).

- sekhar

--
C. Ramakrishnan email@hidden
_______________________________________________
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: Re: Parameter scope quandry (again)
  • Next by Date: timers in AudioHardwarePlugin
  • Previous by thread: Re: Parameter scope quandry (again)
  • Next by thread: timers in AudioHardwarePlugin
  • Index(es):
    • Date
    • Thread