Microphone class
51
The
MovieClip.getNextHighestDepth()
method used in this example requires Flash Player
7 or later. If your SWF file includes a v2 component (version 2 of the Macromedia
Component Architecture), use the DepthManager class from the component framework
instead of the
MovieClip.getNextHighestDepth()
method.
See also
Microphone.get()
,
Microphone.muted
,
System.showSettings()
Microphone.rate
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public rate : Number [read-only]
Description
Property (read-only); the rate at which the microphone is capturing sound, in kHz. 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.
To set this value, use
Microphone.setRate()
.
Example
The following example saves the current rate to the variable
original
:
var active_mic:Microphone = Microphone.get();
var original:Number = active_mic.rate;
See also
Microphone.setRate()
Microphone.setGain()
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public setGain(
gain
: Number) : Void