Re: How to save OpenAL sources to disk
Re: How to save OpenAL sources to disk
- Subject: Re: How to save OpenAL sources to disk
- From: Brian Willoughby <email@hidden>
- Date: Fri, 29 Oct 2010 21:28:51 -0700
On Oct 29, 2010, at 10:35, Development wrote:
Ok I'm creating a program where the user can play several sound
clips simultaneously. They can create compositions of several
minutes if they want. I've created a file format to save the raw
data (The info about what was happening not the actual audio)
Anyway this data is used to replay the composition in the
application. However I want to make it possible to export these in
to mp3 or m4v (actually m4r but same diff) formats. I cannot seem
to find any information on how to take the buffers and write them
in to a file. Especially since there will be times that several
buffers are being played at once. In all there could be as many as
8 sounds playing at once. Could any one point me in the right
direction or give me some hints on how to do this?
I'd say that writing to a file has nothing to do with how many sounds
are being mixed. At some point, all the sounds have to be mixed into
one sample stream before you can hear them on the speakers, and at
that point saving to a file is easy.
I can't tell from your description whether you have the sounds
playing yet or not, but you clearly want to look into the
ExtAudioFile for saving the buffers to a file.
Ah, wait, looking at the subject, I guess you've done this in
OpenAL. You might want to consider an AUGraph with a mixer, which
might make it easier to hook in the ExtAudioFile calls. Someone else
who has worked with OpenAL can hopefully comment on how to do this.
Depending upon how much time you have invested in OpenAL, though, you
might find it easy enough to switch to a pure CoreAudio solution
(AUGraph, etc).
Brian Willoughby
Sound Consulting
_______________________________________________
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