• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Disable AVAudioUnitDistortion decimated node on-the-fly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disable AVAudioUnitDistortion decimated node on-the-fly


  • Subject: Disable AVAudioUnitDistortion decimated node on-the-fly
  • From: "Mazzaroth M." <email@hidden>
  • Date: Sat, 25 Jun 2016 12:24:08 -0400

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 Mixer Demo/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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Determining the maximum number of channels in use for a device
  • Previous by thread: Re: Determining the maximum number of channels in use for a device
  • Index(es):
    • Date
    • Thread