The class Audio provides all possible audio properties as constants.
public static function checkAll(channels:uint, bits:uint, rate:uint):void
Checks all reasonable audio properties
Parameters
| channels:uint — Mono(1) or Stereo(2)
|
|
| bits:uint — 8bit(8) or 16bit(16)
|
|
| rate:uint — SamplingRate 5512Hz, 11025Hz, 22050Hz, 44100Hz
|
Throws
| — thrown, if any property has not valid value
|
public static function checkBits(bits:uint):void
Checks if the passed number of bits if valid
Parameters
| bits:uint — 8bit(8) or 16bit(16)
|
Throws
| — thrown, if not 8bit(8) or 16bit(16)
|
public static function checkChannels(channels:uint):void
Checks if the passed number of channels if valid
Parameters
| channels:uint — Mono(1) or Stereo(2)
|
Throws
| — thrown, if not Mono(1) or Stereo(2)
|
public static function checkRate(rate:uint):void
Checks if the passed number of bits if valid
Parameters
| rate:uint — SamplingRate 5512Hz, 11025Hz, 22050Hz, 44100Hz
|
Throws
| — thrown, if not 5512Hz, 11025Hz, 22050Hz, 44100Hz
|
public static const BIT16:uint = 16
public static const BIT8:uint = 8
public static const MONO:uint = 1
public static const RATE11025:uint = 11025
public static const RATE22050:uint = 22050
public static const RATE44100:uint = 44100
public static const RATE5512:uint = 5512
public static const STEREO:uint = 2