MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 239

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 238
48
Microphone.setGain
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeMicrophone.setGain(gain)
Parameters
gain An integer that specifies the amount by which the microphone should boost the signal.
Valid values are 0 to 100. The default value is 50; however, the user may change this value in the
Flash Player Microphone Settings panel.
Returns
Nothing.
Description
Method; sets the microphone gain—that is, the amount by which the microphone should
multiply the signal before transmitting it. A value of 0 tells Flash to multiply by 0; that is, the
microphone transmits no sound.
You can think of this setting like a volume knob on a stereo: 0 is no volume and 50 is normal
volume; numbers below 50 specify lower than normal volume, while numbers above 50 specify
higher than normal volume.
Example
The following example ensures that the microphone gain setting is less than or equal to 55.
var myMic = Microphone.get();
if (myMic.gain > 55){
myMic.setGain(55);
}
See also
Microphone.gain, Microphone.setUseEchoSuppression
Microphone.setRate
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeMicrophone.setRate(kHz)
Parameters
kHz The rate at which the microphone should capture sound, in kHz. Acceptable values are 5,
8, 11, 22, and 44. The default value is 8 kHz if your sound capture device supports this value.
Otherwise, the default value is the next available capture level above 8 kHz that your sound
capture device supports, usually 11 kHz.
Seitenansicht 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare