AudioUnitSetParameter question
AudioUnitSetParameter question
- Subject: AudioUnitSetParameter question
- From: John Cramp <email@hidden>
- Date: Fri, 15 Feb 2002 17:01:22 -0500
I'm trying to use AudioUnitSetParameter to set some of the options on the built-in reverb audio unit, and I must be doing something wrong because it doesn't seem to be working.
First, I use AudioUnitGetProperty with kAudioUnitProperty_ParameterList, and then AudioUnitGetProperty with kAudioUnitProperty_ParameterInfo to get the list of parameters that the reverb audio unit supports.
So, as an example, "decay time" has a parameter ID of 0, min value of .1, and max value of 5. I see by the flags that it is in the global scope and both readable and writable.
If I try to do the following, however, it doesn't seem to be working:
theStatus = AudioUnitSetParameter(reverbAU, 0, kAudioUnitScope_Global, 0, [sender floatValue], 0);
When I say "doesn't seem to be working," I mean that I can't hear any difference between the max value, the min value, or anything in between. (The same goes for all the other properties.) There are no errors reported from the calls as far as I can tell.
The things that I think might be wrong in that call are the inElement value, and the inBufferOffsetInFrames (arguments 4 and 6). Should they be something other than zero?
If anyone has ideas on why this isn't working, I would appreciate hearing about it.
--john
_______________________________________________
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.