Skip navigation
Currently Being Moderated

Change the active microphone in AS3

Jun 18, 2012 10:12 AM

Tags: #microphone #as3 #security #mic #securitypanel.microphone

Is there a way to change the active microphone in AS3 without using the SecurityPanel.MICROPHONE?  All of my attempts stop all microphone activity, even if triggered by a button click.

 

Using

var mic:Microphone = Microphone.getMicrophone();

works fine, them if at a later point I do

mic = Microphone.getMicrophone(newIndex);

and poll mic.activityLevel - the level is always -1.

 

If I switch back to the original mic, it works again, which ever was originally selected in the security panel works.  This is with two working mics, and I have switched which is selected via the security panel to make sure it is not mic specific.

 

Is this  a security risk and not allowed?  Once you initialize one mic, is that what you are stuck with?  I have switched cameras in air, but that was air.

 

- as a side note, the reason for needing this is we get feedback whenever a user is using the computer speakers and is on firefox.  I have set loopback to false and I have brought the SoundMixer level down to 0, but as soon as the security panel microphone window pops up, the level comes up and loopback acts as if it was set to true.  When the window closes, I get control again.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points