Hi Adam Fox,
> Yay I have finally figured this out. What a relief :) If anyone needs > help getting the same thing working you can contact me :)
> ps. Sorry Jens for mailing you personally I believed I was replying to > the mailing list..
Thanks for your help.
Now my question: It is possible to get the associated audio unit output device from the current running Audio Queue? If it's possible, how I can connect a equalizer to this?
Like that:
AudioComponentDescription cd; memset(&cd,0,sizeof(AudioComponentDescription)); cd.componentFlags = 0; cd.componentFlagsMask = 0; cd.componentManufacturer = kAudioUnitManufacturer_Apple; cd.componentType=kAudioUnitType_Effect; cd.componentSubType=kAudioUnitSubType_GraphicEQ;
.....
AudioUnitParameterValue auParam = 0; error = AudioUnitGetParameter( equalizerAudioUnit, kGraphicEQParam_NumberOfBands, kAudioUnitScope_Global, 0, &auParam ); // auParam: 0 => 10 Band equalizer // auParam: 1 => 31 Band equalizer (default?) error = AudioUnitSetParameter( equalizerAudioUnit, kGraphicEQParam_NumberOfBands, kAudioUnitScope_Global, 0, 1, 0 ); // Set 31-bands eq....
I need that for changing dB on each frequencies.
Thanks in advance Alexander S. |