Re: Write a sound file with sounds generated within the app
Re: Write a sound file with sounds generated within the app
- Subject: Re: Write a sound file with sounds generated within the app
- From: William Stewart <email@hidden>
- Date: Wed, 7 Dec 2005 11:39:14 -0800
On 06/12/2005, at 10:18 PM, Brad Ford wrote:
On Dec 6, 2005, at 8:49 PM, James Udo Ludtke wrote:
<SNIP>
This is not a correct statement. You can write a file from a
number of different sources (i.e. an export from another format, a
transcode or mix-down from another file, etc.). Since your sounds
are not created in the analog world, the use of an input device to
record them to disk is unnecessary, and would introduce quality
degradation.
I'm sure Bill or Doug will chime in with better ideas if they've
got 'em, but I'd suggest you use the AudioConverter + AudioFile API's.
ExtendedAudioFile is even easier. The write calls to ExtAF are thread
safe - they can be made from the I/O thread and the disk I/O occurs
on another thread.
There's an example of setting this up and writing a file in the
ConvertFile call in the SDK's "Simple" directory
Bill
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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