Microphone.setUseEchoSuppression()
473
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 called by the button continues:
function makeSilenceLevel(s)
{
this.obj.setSilenceLevel(s);
this.SyncMode();
this.silenceLevel= s;
}
For more information, see the example for
Camera.setMotionLevel()
.
See also
Microphone.activityLevel
,
Microphone.onActivity
,
Microphone.setGain()
,
Microphone.silenceLevel()
,
Microphone.silenceTimeout()
Microphone.setUseEchoSuppression()
Availability
Flash Player 6.
Usage
activeMicrophone
.setUseEchoSuppression(
suppress
)
Parameters
suppress
A Boolean value indicating whether echo suppression should be used (
true
) or
not (
false
).
Returns
Nothing.
Description
Method; specifies whether to use the echo suppression feature of the audio codec. The default
value is
false
unless the user has selected Reduce Echo in the Flash Player Microphone
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
Microphone.setUseEchoSuppression(true)
if
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.
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...