• 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
A few more recording questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A few more recording questions


  • Subject: A few more recording questions
  • From: Alexander Dvorak <email@hidden>
  • Date: Fri, 17 Sep 2004 19:56:41 -0400

In my search for finding a way to record from my internal microphone to an aiff file in a cocoa program, I have studied this example of converting float format to aiff format (I assume this is what is necessary to convert the format created by apple's internal microphone to an aiff file)

http://www.mat.ucsb.edu:8000/CoreAudio/90

and I have studied the previously mentioned sinewave program here

http://www.audiosynth.com/sinewavedemo.html

My question: when I start recording (inputing from the microphone), should this info go directly into the audio converter which will convert it to aiff? If so, it would seem that I only need one ioProc to do the job. If I make first store it in a buffer and then later convert it, it would seem that I would need two ioProc functions. Is this right?

Once it is converted, I think I can take this buffer filled with aiff formated information and directly write to an aiff file using audioFileWritePackets() function? Is this right?

By keeping the info in a buffer, I assume that it would be stored in memory. If this is the case, there would be a limit to how much I could record at a time (by how much RAM is available). If I write it directly to a file, then I can record up to the maximum memory on the hard drive. But in this case, the user would have to specify a file name and directory before the sound was recorded. Is this right? Does anyone have any suggestions for the most elegant solution?

Thank you in advance for your input.

Alexander

_______________________________________________
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


  • Prev by Date: Re: AudioConverterDispose() and szone_error
  • Next by Date: Explanation of AudioFileWritePackets
  • Previous by thread: Re: AudioConverterDispose() and szone_error
  • Next by thread: Explanation of AudioFileWritePackets
  • Index(es):
    • Date
    • Thread