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

AudioDeviceRead failure


  • Subject: AudioDeviceRead failure
  • From: John Huan <email@hidden>
  • Date: Wed, 13 Aug 2008 08:37:41 +1000

Hi, Everyone,

I am trying to write a HAL Hardware Plug-In based on
SampleHardwarePlugIn code. I need to tap on the default sound output
and record any sample sent to the device.
The plugin can compile and load properly when any process uses HAL
starts up. But, the problem is, when I try to read the sample out of
the device using AudioDeviceRead, it always returns false.
According to the suggestions came from Jeff's answer on the other
mailing list item, I added a function call to register the buffer list
at first, like this:
AudioDeviceSetProperty(inDevice, NULL, 0, inIsInput,
kAudioDevicePropertyRegisterBufferList, sizeof(bufferList),
&bufferList);
But, it also returned failure with error code
kAudioHardwareUnknownPropertyError.

Does that means the default built-in output device doesn't support
direct sample reading?

Is there another way to do that?

Thanks a lot!

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
  • Follow-Ups:
    • Re: AudioDeviceRead failure
      • From: "Mikael Hakman" <email@hidden>
    • Re: AudioDeviceRead failure
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: AudioUnit RenderCallback Scope Issues
  • Next by Date: Re: AudioDeviceRead failure
  • Previous by thread: Re: AudioUnit RenderCallback Scope Issues
  • Next by thread: Re: AudioDeviceRead failure
  • Index(es):
    • Date
    • Thread