• 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
OpenAL sound capture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenAL sound capture


  • Subject: OpenAL sound capture
  • From: "John Haggerty" <email@hidden>
  • Date: Thu, 13 Jul 2006 15:03:04 -0700

Hi,

I am trying to do sound capture with OpenAL. I was pleased to see that 10.4.7 included an upgrade to OpenAL 1.1, but I find I still can't get any input using the capture extension. The following code works fine on Windows and Linux:

alGetError();
captureDevice = alcCaptureOpenDevice(NULL, info->freq,
                                      info->format, channel->bufSize);
if ((error = alGetError()) != AL_NO_ERROR || captureDevice == NULL) {
   printf("Failed to open capture 0x%x\n", error);
               goto bad;
}
alcCaptureStart(captureDevice);
if ((error = alGetError()) != AL_NO_ERROR) {
   printf("Failed to start capture 0x%x\n", error);
}

First of all, the initial alcCaptureOpenDevice call returns NULL but doesn't report an error (I have a Mac mini, and it does have a valid input device).

Thinking that I needed to specify a valid device name, I tried to enumerate the devices using alcGetString(NULL, ALC_DEVICE_SPECIFIER), but this call just returns a NULL string. I also tried alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER) but my headers don't have ALC_CAPTURE_DEVICE_SPECIFIER defined, and when I defined it myself using headers from other platforms, I still got a NULL string.

I also tried opening the default device (using alcOpenDevice(NULL)) and using that device handle for capture. That appears to work (i.e. no error codes) but I also don't seem to get any sound data from the default input device.

Can anybody help me with this?

Also, is there any way to get the current OpenAL source code?

Thanks,

John
 _______________________________________________
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: dyld returns 2 when loading AppleHDAHALPlugIn
  • Next by Date: Re: dyld returns 2 when loading AppleHDAHALPlugIn
  • Previous by thread: Re: dyld returns 2 when loading AppleHDAHALPlugIn
  • Next by thread: AUMixer3dTest UI
  • Index(es):
    • Date
    • Thread