Filter doesn't applied
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
The AEAudioUnitFilter structure changed. See this post:
http://forum.theamazingaudioengine.com/discussion/950/aeaudiounitfilter-not-working-in-1-4-8-and-above
Nice, thank's !