             player.stop()
         }
     }
-
 }

        // Do any additional setup after loading the view.

        // For this example, we'll just use the manager to get a list of all installed Audio Units
        self.manager.requestEffects(completionHandler: { audioUnits in
            AKLog("Installed Audio Units:")
            for test in audioUnits {
                AKLog(test.name)


        AKManager.output = mixer

        guard let url = Bundle.main.resourceURL?.appendingPathComponent("Organ.wav"),
            FileManager.default.fileExists(atPath: url.path),
            let audioFile = try? AVAudioFile(forReading: url) else {
            AKLog("Didn't find source file")
            return
        }

        player = AKPlayer(audioFile: audioFile)
        player?.isLooping = true
        player?.buffering = .always

        do {
            try AKManager.start()
