我正在尝试使用AudioKit 4.1来学习基础教程.我首先在项目中导入了AudioKit框架,如下图所示.
导入AudioKit框架后,我在ViewController中添加了几行代码,如下所示:
import UIKit import AudioKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view,typically from a nib. let oscillator = AKOscillator() oscillator.amplitude = 0.1 AudioKit.output = oscillator oscillator.start() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }