wavFiles
Class ByteConverterAifInt32

java.lang.Object
  extended by wavFiles.ByteConverter
      extended by wavFiles.ByteConverterAifInt32

public class ByteConverterAifInt32
extends ByteConverter


Constructor Summary
ByteConverterAifInt32()
           
 
Method Summary
 int bytesToDouble(byte[] byteData, double[][] doubleData, int numBytes)
          Converts a byte array into a double array.
 int doubleToBytes(double[][] doubleData, byte[] byteData, int numSamples)
          Converts a double array into a byte array.
 
Methods inherited from class wavFiles.ByteConverter
createByteConverter, createByteConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteConverterAifInt32

public ByteConverterAifInt32()
Method Detail

bytesToDouble

public int bytesToDouble(byte[] byteData,
                         double[][] doubleData,
                         int numBytes)
Description copied from class: ByteConverter
Converts a byte array into a double array. The double array can be longer than required to hold the byte array in which case remaining doubles will be left untouched and not set to zero.

Specified by:
bytesToDouble in class ByteConverter
Parameters:
byteData - byte data
doubleData - double data
Returns:
number of doubles converted

doubleToBytes

public int doubleToBytes(double[][] doubleData,
                         byte[] byteData,
                         int numSamples)
Description copied from class: ByteConverter
Converts a double array into a byte array. The byte array can be longer than required to hold the double data in which case remaining bytes will be left untouched and not set to zero.

Specified by:
doubleToBytes in class ByteConverter
Parameters:
doubleData - double data
byteData - byte data
Returns:
number of bytes converted