• 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: Using MTCoreAudio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using MTCoreAudio (From: Olivier Destrebecq <email@hidden>)
 >Re: Using MTCoreAudio (From: Michael Thornburgh <email@hidden>)
 >Re: Using MTCoreAudio (From: Olivier Destrebecq <email@hidden>)

  • Prev by Date: Re: Audio Midi Setup App
  • Next by Date: (no subject)
  • Previous by thread: Re: Using MTCoreAudio
  • Next by thread: Re: Using MTCoreAudio
  • Index(es):
    • Date
    • Thread