Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. audioEngine = AVAudioEngine()
  2.  
  3. let unitEffect = AVAudioUnitReverb()
  4. unitEffect.wetDryMix = 50
  5.  
  6. audioEngine.attach(unitEffect)
  7.  
  8. audioEngine.connect(audioEngine.inputNode, to: unitEffect, format: nil)
  9. audioEngine.connect(unitEffect, to: audioEngine.outputNode, format: nil)
  10.  
  11. audioEngine.prepare()
  12.  
  13. do {
  14. try audioEngine.start()
  15. } catch {
  16. print(error)
  17. }
Add Comment
Please, Sign In to add comment