Forum Topic: Silencing microphone sound

(122 views • 2 replies)

This topic is 1 page long.

<< < > >>
Questioning

trekopep

Reply To Post Reply & Quote

Posted at: 9/7/08 08:11 AM

trekopep NEUTRAL LEVEL 19

Sign-Up: 11/25/05

Posts: 328

So, I've been looking around, but I can't seem to find this. In the code below, what do I do to make it so that the bar still jumps when you make noise, but you can't hear the noise back?

this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);
active_mic.setRate(0);
active_mic.setUseEchoSuppression(true);
var amount:Number =10;
onEnterFrame = function () {
shape._yscale = active_mic.activityLevel*amount;
};

If you're confused, tell me.

You always think something is amazing until you watch it five billion times.

BBS Signature

None

Claxor

Reply To Post Reply & Quote

Posted at: 9/7/08 09:00 AM

Claxor DARK LEVEL 10

Sign-Up: 10/21/05

Posts: 2,465

I've never worked with the mic in flash, nor do I have one, so I can't try this, but to me it seems this would do the trick:

this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
active_mic.setRate(0);
active_mic.setUseEchoSuppression(true);
var amount:Number =10;
onEnterFrame = function () {
shape._yscale = active_mic.activityLevel*amount;
};
BBS Signature

None

trekopep

Reply To Post Reply & Quote

Posted at: 9/7/08 10:36 AM

trekopep NEUTRAL LEVEL 19

Sign-Up: 11/25/05

Posts: 328

At 9/7/08 09:00 AM, Claxor wrote: I've never worked with the mic in flash, nor do I have one, so I can't try this, but to me it seems this would do the trick:

this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
active_mic.setRate(0);
active_mic.setUseEchoSuppression(true);
var amount:Number =10;
onEnterFrame = function () {
shape._yscale = active_mic.activityLevel*amount;
};

Unfortunately, I already tried that, and it didn't work. It does seem to work pretty well if I add active_mic.setSilenceLevel(100);

I'm not sure if It's foolproof, but it'll do. :P

You always think something is amazing until you watch it five billion times.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 12:32 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!