Re: Using MTCoreAudio
Re: Using MTCoreAudio
- Subject: Re: Using MTCoreAudio
- From: Doug Wyatt <email@hidden>
- Date: Mon, 10 Oct 2005 10:34:35 -0700
On Oct 9, 2005, at 20:33, Olivier Destrebecq wrote:
Mike,
thanks for your response.
I looked into the coreaudio stuff and i have found the class
CAAudioFileWriter. It seems promising except that i cannot figure
out how to use it. it has a conveinient start methods, but nowhere
can i pass it information about what to write to the file.
Any pointers?
Olivier Destrebecq
http://otusweb.spymac.com/portfolio/
If you can require Tiger in your app, consider using ExtAudioFile
which supports asynchronous writing. It's very simple to record with
this API.
Otherwise, look at afrecord in the AudioFileTools project, which uses
CAAudioFileWriter. The bridge between audio input and writing the
file starts in CAAudioFileRecorder::InputProc. That function gets
called every audio I/O cycle, and pushes a buffer onto a queue. A
disk I/O thread later wakes up, removes the buffer from the queue and
writes it to the file, in CAAudioFileWriter::WriteBuffer.
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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