Packagecom.noteflight.standingwave2.formats
Classpublic class WaveFile
InheritanceWaveFile Inheritance Object

The WaveFile class translates between audio files in the WAV format and Samples.



Public Methods
 MethodDefined By
  
createSample(wav:ByteArray):Sample
[static] Given a WAV file in the form of a ByteArray, return a Sample that includes its data.
WaveFile
  
writeHeader(dataSize:uint, sampleRate:uint, numChannels:uint, bitDepth:uint):ByteArray
[static]
WaveFile
Method Detail
createSample()method
public static function createSample(wav:ByteArray):Sample

Given a WAV file in the form of a ByteArray, return a Sample that includes its data.

Parameters

wav:ByteArray

Returns
Sample
writeHeader()method 
public static function writeHeader(dataSize:uint, sampleRate:uint, numChannels:uint, bitDepth:uint):ByteArray

Parameters

dataSize:uint
 
sampleRate:uint
 
numChannels:uint
 
bitDepth:uint

Returns
ByteArray