# Microphone.activityLevel causes strange crash

**URL:** <https://forum.kirupa.com/t/microphone-activitylevel-causes-strange-crash/285162>\
**Category:** flash\
**Created:** [March 27, 2009, 6:34pm UTC](https://forum.kirupa.com/t/microphone-activitylevel-causes-strange-crash/285162 "2009-03-27T18:34:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AAoK](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@AAoK](https://forum.kirupa.com/u/AAoK)\
**Post date:** [March 27, 2009, 6:34pm UTC](https://forum.kirupa.com/t/microphone-activitylevel-causes-strange-crash/285162/1 "2009-03-27T18:34:17Z")

</div>

Hi,

I’m facing a really strange problem. I’m running a timer event which contains Microphone.activityLevel. Like this:

var level:Number = \_mic.activityLevel;

level -variable controls embedded movieclip. Everything works out fine until suddenly Flash Player crashes: processor usage jumps to 100% and animation freezes. I first tought its after 30 min but now it seems there is no clear pattern: it’s usually somewhere between 30 - 120 min when it happens. Same thing in browser and stand alone. I have newest version of player.

I also tracked down the bug to Microphone.activityLevel, because if I put

var level:Number = Math.random() \* 100;

instead, everything works out fine.

I have Mac OS X 10.5.6. and I haven’t got opportunity to test this on Windows yet.

Could someone explain what causes this?
