When the code below is compiled as a SWF, everything works correctly. However, when compiled in Zinc, I receive an error message or crash. This only happens when 'mic.setLoopBack(true)' is set to 'true':
public function Micro() {
mic = Microphone.getMicrophone( 0 );
mic.setLoopBack( true );
if (mic != null) {
mic.setUseEchoSuppression( false );
mic.setSilenceLevel( silenceLevel );
mic.addEventListener( ActivityEvent.ACTIVITY, onActivity );
mic.addEventListener( StatusEvent.STATUS, onStatus );
}
}
public function get value():Number {
return mic.activityLevel;
}
|