Swift: Sound-Output & Microphone-Input | using AudioKit |

前端 未结 1 1144
别跟我提以往
别跟我提以往 2021-01-06 14:11

I\'m using >Xcode Version 9.2<
I\'m using >AudioKit Version 4.0.4<


I\'ve written some code you can find below

相关标签:
1条回答
  • 2021-01-06 14:33

    I believe the lionshare of your problems are due to local declaration of AKNodes within the functions that use them:

       let sound = AKOscillator()
       let mic = AKMicrophone()        
       let silence = AKBooster(tracker, gain: 0)
    

    Declare these as instance variables instead, as described here.

    0 讨论(0)
提交回复
热议问题