User Guide

Microphone class 53
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 users preference (which you have
assigned to the
userRate variable) if it is one of the following values: 5, 8, 11, 22, or 44. If it
is not, the value is rounded to the nearest acceptable value that the sound capture device
supports.
active_mic.setRate(userRate);
See also
Microphone.rate
Microphone.setSilenceLevel()
Availability
Flash Player 6.
Flash Media Server (not required).
Usage
public setSilenceLevel(silenceLevel:Number, [timeOut:Number]) : Void
Parameters
silenceLevel An integer that specifies the amount of sound required to activate the
microphone and invoke
Microphone.onActivity(true). Acceptable values range from 0
to 100. The default value is 10.
timeOut An optional integer parameter that specifies how many milliseconds must elapse
without activity before Flash considers sound to have stopped and invokes
Microphone.onActivity(false). The default value is 2000 (2 seconds).
Returns
Nothing.