• 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: AudioUnits....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnits....


  • Subject: Re: AudioUnits....
  • From: philippe wicker <email@hidden>
  • Date: Tue, 20 Dec 2005 08:10:41 +0100


On Dec 20, 2005, at 3:29 AM, George Malayil-Philip wrote:

Hi,
I am trying to read a file into memory, process the data with a series
of audio units, then convert it to .mp3 using LAME and then also output it
to a file and default output. The problem is in taking the output from the
last of the first series of audio unit renders and pass it on to LAME and
from there to the output unit and file. What would be the best way to do
this? Do I write my own audio unit that uses LAME?

I don't know the "streaming model" used by LAME, so my suggestion may be irrelevant.


If you want to get audio out of an AU the simplest way is to call AudioUnitRender on this AU. This API is documented in detail at:

file:///Developer/Examples/CoreAudio/Documentation/AudioUnits/ index.html (chapter "Audio Unit Rendering").

By calling this API you will get audio buffers rendered by the target AU and you can then pass these buffers to the LAME encoder. I'm not sure that you need to use an OutputAU to write the encoded data into a file. You could use the CoreAudio file API to directly manage this.

Regards
Philippe

This way I figure the
pull I/O model would work fine, would just have to insert the new LAME audio
unit into the sequence.
Otherwise, is there any way for me to get to the buffer of a audio
unit's output, process that buffer with LAME and then signal the output
audio unit that there is new data waiting to be output?
The other option is to use a render call back struct that starts the
first series of audio units, process the data with LAME and provide this
callback struct as the input proc for the output unit. This would be a
little tedious if there are multiple breaks in the audio unit path, so, I
figure there might be a better way :)
Still triyng to figure out the framework. Thanks



Regards George M.P.


_______________________________________________ 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


_______________________________________________ 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
References: 
 >AudioUnits.... (From: George Malayil-Philip <email@hidden>)

  • Prev by Date: AudioUnits....
  • Next by Date: Re: Newbie and AU plugin Dev
  • Previous by thread: AudioUnits....
  • Next by thread: Re: AudioUnits....
  • Index(es):
    • Date
    • Thread