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

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
References: 
 >output to aiff (From: Roland Silver <email@hidden>)

  • Prev by Date: AudioQueue basics - elapsed time and seeking
  • Next by Date: Setparameter problem
  • Previous by thread: output to aiff
  • Next by thread: Audio Input Queue on iPhone
  • Index(es):
    • Date
    • Thread