Problem with AEAudioUnitFilter

Hello All

I am having an issue assigning an AEAudioUnitFilter direct to a channel.

I can get it to work fine if I assign it to a channel group but not to a channel directly.

AudioComponentDescription component = AEAudioComponentDescriptionMake(kAudioUnitManufacturer_Apple, kAudioUnitType_FormatConverter, kAudioUnitSubType_Varispeed);

 _filter1 = [[AEAudioUnitFilter alloc] initWithComponentDescription:component];

[_audioController addFilter:_filter1 toChannelGroup:_masterGroup];

This works fine.

But...

AudioComponentDescription component = AEAudioComponentDescriptionMake(kAudioUnitManufacturer_Apple, kAudioUnitType_FormatConverter, kAudioUnitSubType_Varispeed);

 _filter1 = [[AEAudioUnitFilter alloc] initWithComponentDescription:component];

[_audioController addFilter:_filter1 toChannel:_channel1];

This does not.

I am setting the property for the Varispeed like this:

[_filter1 setParameterValue:2.0f forId:kVarispeedParam_PlaybackRate];

Could anyone suggest what I am doing wrong? Or is this a bug in the audio engine?

Many Thanks

Comments

  • Interestingly, this seems to work fine for me. Here's a patch against the TAAE sample app (apply it with "patch -p1 < rate.patch" from the project folder).

  • Thanks for the reply Michael. I am not sure what I was doing wrong but using your example I have managed to get it working.

    Maybe I was adding the filter to the channel before adding the channel to the audioController.

    Anyway. It is working great now.

    Thanks again for the help.

  • Okay, good to know!

Sign In or Register to comment.