Re: How to write to the file instead of sending data(music) to the speaker
Re: How to write to the file instead of sending data(music) to the speaker
- Subject: Re: How to write to the file instead of sending data(music) to the speaker
- From: Sanoj Nambi <email@hidden>
- Date: Wed, 16 Jun 2010 17:21:36 -0500
Hello ,
I am currently playing out music from a drum kit using the same method as the MultichannelMixer sample code. So I have a mixer unit and a Remote I/O output unit being controlled by a graph. Now I need to save the audio to the disc which was played out through the drum kit. So I plan to replace the Remote I/O output unit with a generic output unit as given in Play Sequence example. My question is , how do I get access to the audio data which has been mixed by mixer node and being fed into the generic output node. I will then try to write this stream of mixed .wav sounds to a single audio file.
Thank you
Regards
Nambi
On Tue, Jun 15, 2010 at 3:09 PM, William Stewart
<email@hidden> wrote:
Have a look at the PlaySequence sample code - it shows you how to write a file.
You can also use the CAAudioUnitOutputCapturer.h file
- this will create a file from the output of the supplied audio unit
- you can use this to record a playing graph (we use something similar to this in AULab)
(NOTE: if you use this file, there is a bad bug in it that we just noticed last week. You would need to make sure that any call to ExtAudioFileWrite is changed to ExtAudioFileWriteAsync)
HTH
Bill
On Jun 14, 2010, at 10:07 PM, Sanoj Nambi wrote:
> Hello William,
>
> I am creating an app where I let user to compose music and then allow them to sing listening to the composed music.
>
> I have written code to store the composed music.Music is created by selecting different beats.Each beat is internally a wav file and there are 40 beats.I have a data structure which stores the time when each beat is selected and then I play them using MultiMixer( using AUGraph).Now, I want to write this music data from the mixer node to a file instead of sending it to speaker.I know that Genericoutput can be used to achieve this however I cannot find an appropriate example which explains how to do.
> I would appreciate if someone can help me.
>
> Thank you
>
> Regards,
> Nambi
_______________________________________________
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