Added null check in case the user denied access to the microphone.

This commit is contained in:
Shane M. Clements 2014-06-06 14:19:28 -06:00
parent 31323c2eca
commit 82185a53e9

View file

@ -139,7 +139,9 @@ public class SoundEditor extends Sprite {
}
private function addMicVolumeSlider():void {
function setMicLevel(level:Number):void { microphone.gain = level }
function setMicLevel(level:Number):void {
if(microphone) microphone.gain = level;
}
addChild(micVolumeLabel = Resources.makeLabel('Microphone volume:', CSS.normalTextFormat, 22, 240));