Class AudioUtil

java.lang.Object
de.presti.ree6.utils.data.AudioUtil

public class AudioUtil extends Object
A utility class to work with Audio files.
  • Method Details

    • convertPCMtoWAV

      public static byte[] convertPCMtoWAV(ByteBuffer byteBuffer) throws IOException
      Convert a PCM ByteBuffer into a WAV encoded byte array.
      Parameters:
      byteBuffer - The PCM ByteBuffer.
      Returns:
      The WAV encoded byte array.
      Throws:
      IOException - If an error occurs.