Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Why doesn't passing 100 as the first argument of Microphone.setSilenceLevel() silence the mic?

Explorer ,
Apr 29, 2014 Apr 29, 2014

According to the documentation for Microphone.setSilenceLevel():

    "To prevent the microphone from detecting sound at all, pass a value of 100 for silenceLevel; the activity event is never dispatched."

That being said, I've tried this, and it doesn't seem to be working.  I've tried it when passing either 2000 or -1 for the timeout parameter, and I've also tried passing 101 as the value for silenceLevel.  Whether using 100 or 101, I'm still able to hear my voice when the microphone is set to loop back, and I'm able to see its activityLevel property go up and down while speaking into it.  I've tried turning loop back off for several seconds, then turning it back on again, but to no avail.

This is probably a bug that needs to be reported.  If not though, then please explain.  Thanks.

TOPICS
ActionScript
240
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation