Re: Trying to gifure out why adding kAudioDeviceProcessorOverload listener fails
Re: Trying to gifure out why adding kAudioDeviceProcessorOverload listener fails
- Subject: Re: Trying to gifure out why adding kAudioDeviceProcessorOverload listener fails
- From: Jeff Moore <email@hidden>
- Date: Mon, 5 Nov 2007 11:46:37 -0800
For this particular API call, you will almost always get an error that
is one of the 32 bit 4CC's in AudioHardware.h. The return value you
cite is just a 16 bit value that corresponds to 'pe'. If I had to
guess, I'd say that this is the bottom 16 bits of 'nope' which is
kAudioHardwareIllegalOperationError.
The usual cause for getting this error with
AudioDeviceAddPropertyListener is that the listener being added has
already been registered for the given property.
On Nov 5, 2007, at 11:14 AM, Bjorn Roche wrote:
I am maintainer of the PortAudio code for Mac OS X. I have gotten
reports that the following code always fails on Leopard, and I've
also seen it occasionally fail on 10.4, with the same symptoms (it
returns 28773, 0x7065), though the 10.4 issue could be due to
trouble in my code, since the test programs always seem to wrok:
AudioDeviceAddPropertyListener( *audioDevice,
0,
outStreamParams ? false : true,
kAudioDeviceProcessorOverload,
xrunCallback,
(void *)stream) );
Aside from this and some java, I'm not too much of an apple
programmer, but I'm at a loss for where to turn for this error
message -- I've searched and searched for meaning but I can't find
any. The docs don't seem to be of any use. Any suggestions? This
would help a lot of folks out, since many people use this library
and want leopard compatibility!
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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