Example
The following example changes the silence level based on the user's input. The button has the
following code attached:
on (press)
{
this.makeSilenceLevel(this.silenceLevel);
}
The
makeSilenceLevel()
function makeSilenceLevel(s)
{
this.obj.setSilenceLevel(s);
this.SyncMode();
this.silenceLevel= s;
}
For more information, see the example for
See also
Microphone.activityLevel
Microphone.silenceLevel()
Microphone.setUseEchoSuppression()
Availability
Flash Player 6.
Usage
activeMicrophone.setUseEchoSuppression(suppress)
Parameters
A Boolean value indicating whether echo suppression should be used (
suppress
not (
).
false
Returns
Nothing.
Description
Method; specifies whether to use the echo suppression feature of the audio codec. The default
value is
unless the user has selected Reduce Echo in the Flash Player Microphone
false
Settings panel.
Echo suppression is an effort to reduce the effects of audio feedback, which is caused when sound
going out the speaker is picked up by the microphone on the same computer. (This is different
from echo cancellation, which completely removes the feedback.)
Generally, echo suppression is advisable when the sound being captured is played through
speakers—instead of a headset—on the same computer. If your SWF file allows users to specify
the sound output device, you may want to call
they indicate they are using speakers and will be using the microphone as well.
Users can also adjust these settings in the Flash Player Microphone Settings panel.
function called by the button continues:
Camera.setMotionLevel()
,
Microphone.onActivity
,
Microphone.silenceTimeout()
Microphone.setUseEchoSuppression(true)
.
,
Microphone.setGain()
Microphone.setUseEchoSuppression()
,
) or
true
if
473
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?