Re: output to aiff
Re: output to aiff
- Subject: Re: output to aiff
- From: Craig Hopson <email@hidden>
- Date: Tue, 23 Sep 2008 13:44:17 -0600
Roland,
The following will work as an export function, not in conjunction with
output simultaneously going to standard output...
- build your AUGraph using the generic output device
(kAudioUnitSubType_GenericOutput)
- setup your output format, tell the graph about it
- create a file and set the format there also (CAAudioFile makes it
easy)
- setup a buffer (AUOutputBL)
- do until your source has all been 'played' ...
- prepare the buffer
- call AudioUnitRender on the output unit to fill the buffer
- call outputFile.Write to put the buffer into the file
- close the file
These steps are only a bare outline, of course. There probably are
other ways to do this sort of thing...
-Craig
On Sep 23, 2008, at 6:43 AM, Roland Silver wrote:
I have a working program that lets me compose music and send output
to the Mac standard output (pleakers). How can I modify it to send
output to an aiff or mpeg file?
_______________________________________________
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