Microphone.rate

Availability

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()


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fms/2/docs/00000560.html