Filter doesn't applied

edited October 2015

Hi,

I have a problem with my reverb AEAudioUnitFilter, when I add it to my channelGroup, It doesn't change anything...

Here's my code :

let audioFilePlayerVoice = AEAudioFilePlayer(URL: voice, error: nil)
audioFilePlayerVoice.loop = true
let component = AEAudioComponentDescriptionMake(OSType(kAudioUnitManufacturer_Apple), OSType(kAudioUnitType_Effect), OSType(kAudioUnitSubType_Reverb2))
let reverb = AEAudioUnitFilter(componentDescription: component)
AudioUnitSetParameter(reverb.audioUnit, AudioUnitParameterID(kReverb2Param_DryWetMix), AudioUnitScope(kAudioUnitScope_Global), 0, 100, 0)
self._groupRefVoice = appDelegate.audioController.createChannelGroup()
appDelegate.audioController.addChannels([audioFilePlayerVoice], toChannelGroup: self._groupRefVoice!)
appDelegate.audioController.setVolume(1, forChannelGroup: self._groupRefVoice!)
appDelegate.audioController.addFilter(reverb, toChannelGroup: self._groupRefVoice!)

Comments

Sign In or Register to comment.