# P5js sound, microphone stop doesn't stop the microphone input

**URL:** <https://discourse.processing.org/t/p5js-sound-microphone-stop-doesnt-stop-the-microphone-input/30283>\
**Category:** Libraries\
**Created:** [May 25, 2021, 4:22pm UTC](https://discourse.processing.org/t/p5js-sound-microphone-stop-doesnt-stop-the-microphone-input/30283 "2021-05-25T16:22:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cprieto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cprieto/32/13369_2.png) [@cprieto](https://discourse.processing.org/u/cprieto)\
**Post date:** [May 25, 2021, 4:22pm UTC](https://discourse.processing.org/t/p5js-sound-microphone-stop-doesnt-stop-the-microphone-input/30283/1 "2021-05-25T16:22:57Z")

</div>

I will expect the method `stop` will stop the microphone from capturing input in p5js, as the documentation states:

> Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().

But that is not happening, even after calling stop the microphone is still working and capturing audio.

---

<div class="post-metadata">

**Author:** ![KumuPaul](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kumupaul/32/13072_2.png) [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Post date:** [May 25, 2021, 9:42pm UTC](https://discourse.processing.org/t/p5js-sound-microphone-stop-doesnt-stop-the-microphone-input/30283/2 "2021-05-25T21:42:58Z")

</div>

I can’t reproduce your issue. I just updated my example from your other question to include the ability to capture the mic: [Recording Experiments - OpenProcessing](https://openprocessing.org/sketch/1204734) it uses start/stop to capture/mute. Works for both the FFT and the recording.
