MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 471

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

var myMic = Microphone.get();
if (myMic.gain > 55){
myMic.setGain(55);
}
See also
Microphone.gain
Microphone.setRate()
Availability
Flash Player 6.
Usage
activeMicrophone.setRate(kHz)
Parameters
The rate at which the microphone should capture sound, in kHz. Acceptable values are 5,
kHz
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.
Returns
Nothing.
Description
Method; sets the rate, in kHz, at which the microphone should capture sound.
Example
The following example sets the microphone rate to the user's preference (which you have assigned
to the
userRate
value is rounded to the nearest acceptable value that the sound capture device supports.
myMic.setRate(userRate);
See also
Microphone.rate
,
Microphone.setUseEchoSuppression()
variable) if it is one of the following values: 5, 8, 11, 22, or 44. If it is not, the
Microphone.setRate()
471

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents