Re: bug
Re: bug
- Subject: Re: bug
- From: Laurent de Segur <email@hidden>
- Date: Tue, 26 Feb 2002 15:35:19 -0800
On Tuesday, February 26, 2002, at 01:51 PM, N Koizumi wrote:
I can not use AudioUnitGetPropertyInfo with
kAudioUnitProperty_ParameterInfo to know the parameter
is writable. The boolean return is always false.
Hi,
I am not sure if this can be categorized as a bug, but your best bet is
to use kAudioUnitParameterFlag_IsReadable &
kAudioUnitParameterFlag_IsWritable in the AudioUnitParameterInfo struct
that you get using the same API call. That will give you what you are
looking for. I found this out a little while ago, while writing an
effect sample program.
On a related issue, which this message reminds me about: I can use
AudioUnitSetParameter() on each available effect unit with any value for
its parameters, even outside the range of min and max values defined by
the audio unit to each parameter. Is this behavior intended? Shouldn't
the component check the range of valid values before updating its
parameters, or even better, a more generic approach by putting the range
test in the AudioUnitSetParameter() call itself, and then returning an
out-of-range error if the value is out of bounds?
Sorry if this has been reported before and it's a known problem already.
Thanks,
LdS
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >bug (From: N Koizumi <email@hidden>) |