AudioDeviceRead failure
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