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: William Stewart <email@hidden>
- Date: Tue, 15 Jun 2010 13:09:22 -0700
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