Package | de.popforge.audio.output |
Class | public class SoundFactory |
Method | Defined by | ||
---|---|---|---|
fromArray(samples:Array, channels:uint, bits:uint, rate:uint, onComplete:Function):void
[static]
Creates a flash.media.Sound object from dynamic audio material
| SoundFactory | ||
fromByteArray(bytes:ByteArray, channels:uint, bits:uint, rate:uint, onComplete:Function):void
[static]
Creates a flash.media.Sound object from dynamic audio material
| SoundFactory |
fromArray | () | method |
public static function fromArray(samples:Array, channels:uint, bits:uint, rate:uint, onComplete:Function):void
Creates a flash.media.Sound object from dynamic audio material
Parameterssamples:Array — An Array of Samples (de.popforge.audio.output.Sample)
|
|
channels:uint — Mono(1) or Stereo(2)
|
|
bits:uint — 8bit(8) or 16bit(16)
|
|
rate:uint — SamplingRate 5512Hz, 11025Hz, 22050Hz, 44100Hz
|
|
onComplete:Function — Function, that will be called after the Sound object is created. The signature must accept the Sound object as a parameter!
|
See also
fromByteArray | () | method |
public static function fromByteArray(bytes:ByteArray, channels:uint, bits:uint, rate:uint, onComplete:Function):void
Creates a flash.media.Sound object from dynamic audio material
Parametersbytes:ByteArray — A uncompressed PCM ByteArray
|
|
channels:uint — Mono(1) or Stereo(2)
|
|
bits:uint — 8bit(8) or 16bit(16)
|
|
rate:uint — SamplingRate 5512Hz, 11025Hz, 22050Hz, 44100Hz
|
|
onComplete:Function — Function, that will be called after the Sound object is created. The signature must accept the Sound object as a parameter!
|
See also