Is it possible to disable an effect node on the fly? I've made a couple of attempts and the result is that playback will silence. This is Xcode 7.3, Swift, iOS 9.3
full project at https://github.com/mazz/AudioMixerDemo/blob/disable_decimated/Audio%20Mixer%20Demo/ViewController.swift @IBAction func disableDecimatedTapped(sender: UIButton) { NSLog("disableDecimatedTapped:") /* try 1 engine.stop() engine.detachNode(distortionA) player.scheduleBuffer(buffer, atTime: nil, options: AVAudioPlayerNodeBufferOptions.Loops, completionHandler: nil) engine.connect(player, to: distortionB, format: buffer.format) engine.connect(distortionB, to: engine.mainMixerNode, format: buffer.format) engine.prepare() try! engine.start() player.play() */ // try 2 engine.disconnectNodeOutput(distortionA) engine.connect(player, to: distortionB, format: buffer.format) engine.stop() engine.detachNode(distortionA) try! engine.start() player.play() }
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
