Package wavFiles

Class ByteConverterFloat32

java.lang.Object
wavFiles.ByteConverter
wavFiles.ByteConverterFloat32

public class ByteConverterFloat32 extends ByteConverter
  • Constructor Details

    • ByteConverterFloat32

      public ByteConverterFloat32()
  • Method Details

    • 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