• 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
Beginner question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Beginner question


  • Subject: Beginner question
  • From: Alexander Dvorak <email@hidden>
  • Date: Mon, 13 Sep 2004 23:02:52 -0400

Dear All,

I am trying to create a button in a Cocoa application that would record from the default audio input (such as an internal microphone). Pressing the button again would save the audio input as a aiff file.

What I have been able to figure out...
I need to
1. Include the line "#import <CoreAudio/CoreAudio.h>" in my file to access the core audio functions.
2. Get the default input audio device (internal microphone) using AudioHardwareGetProperty().
3. Add a ioproc to the input audio device using AudioDeviceAddIOProc()
4. Use AudioDeviceStart() to start the recording and AudioDeviceStop() to stop it.
5. Use AudioDeviceRemoveIOProc() when done to clean up


What I don't understand...
1. What is an ioProc? What would I include in this function if I want to record from the input audio device?
2. Do I get the sound from the device using this function? Does it go into a buffer which then can be saved into an aiff file?


As you can see, I have read the core audio documentation, but am missing a few conceptual ideas in how to get this to work. Thank you in advance for any explanation you can give.

Sincerley,

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: Multiple events per packet
  • Next by Date: Re: MIDI packet processing
  • Previous by thread: Re: Multiple events per packet
  • Next by thread: Re: Beginner question
  • Index(es):
    • Date
    • Thread