• 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: capturing AUGraph output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: capturing AUGraph output


  • Subject: Re: capturing AUGraph output
  • From: Chandrasekhar Ramakrishnan <email@hidden>
  • Date: Sun, 05 Oct 2003 07:08:45 -0700

Christopher Corbell writes:
> Given an AUGraph that terminates in a default
> output device, how can one capture or copy the
> output audio data? I want to grab the data
> after all of the effects in the chain etc.
> have been applied.

I think the easiest way to do this is to add a render notification
callback to the graph. In the callback, check that the PostRender flag
is set and if so, copy the data to your buffer.

The source code to Ouroboros
<http://www.mat.ucsb.edu/~c.ramakr/illposed/ouroboros.html> gives an
example of doing this, though there probably is a better example out
there.

(Actually Ouroboros adds a render notification to the mixer, not the
graph, because I want to get the buffer in a deinterleaved form, not
in the devices native format, but the idea is basically the same).

- 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.

References: 
 >capturing AUGraph output (From: Christopher Corbell <email@hidden>)

  • Prev by Date: Re: Why is AudioGetHostClockFrequency returning zero?
  • Next by Date: Re: capturing AUGraph output
  • Previous by thread: capturing AUGraph output
  • Next by thread: Re: capturing AUGraph output
  • Index(es):
    • Date
    • Thread