Packagede.popforge.audio.output
Classpublic class Audio

The class Audio provides all possible audio properties as constants.



Public Methods
 MethodDefined by
  
checkAll(channels:uint, bits:uint, rate:uint):void
[static] Checks all reasonable audio properties
Audio
  
checkBits(bits:uint):void
[static] Checks if the passed number of bits if valid
Audio
  
checkChannels(channels:uint):void
[static] Checks if the passed number of channels if valid
Audio
  
checkRate(rate:uint):void
[static] Checks if the passed number of bits if valid
Audio
Public Constants
 ConstantDefined by
  BIT16 : uint = 16
[static]
Audio
  BIT8 : uint = 8
[static]
Audio
  MONO : uint = 1
[static]
Audio
  RATE11025 : uint = 11025
[static]
Audio
  RATE22050 : uint = 22050
[static]
Audio
  RATE44100 : uint = 44100
[static]
Audio
  RATE5512 : uint = 5512
[static]
Audio
  STEREO : uint = 2
[static]
Audio
Method detail
checkAll()method
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
checkBits()method 
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)
checkChannels()method 
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)
checkRate()method 
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
Constant detail
BIT16constant
public static const BIT16:uint = 16
BIT8constant 
public static const BIT8:uint = 8
MONOconstant 
public static const MONO:uint = 1
RATE11025constant 
public static const RATE11025:uint = 11025
RATE22050constant 
public static const RATE22050:uint = 22050
RATE44100constant 
public static const RATE44100:uint = 44100
RATE5512constant 
public static const RATE5512:uint = 5512
STEREOconstant 
public static const STEREO:uint = 2