Class CodecWav

java.lang.Object
paulscode.sound.codecs.CodecWav
All Implemented Interfaces:
ICodec

@Environment(CLIENT) public class CodecWav extends Object implements ICodec
  • Field Details

  • Constructor Details

    • CodecWav

      public CodecWav()
  • Method Details

    • reverseByteOrder

      public void reverseByteOrder(boolean bool)
      Specified by:
      reverseByteOrder in interface ICodec
    • initialize

      public boolean initialize(URL uRL)
      Specified by:
      initialize in interface ICodec
    • initialized

      public boolean initialized()
      Specified by:
      initialized in interface ICodec
    • read

      public SoundBuffer read()
      Specified by:
      read in interface ICodec
    • readAll

      public SoundBuffer readAll()
      Specified by:
      readAll in interface ICodec
    • endOfStream

      public boolean endOfStream()
      Specified by:
      endOfStream in interface ICodec
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface ICodec
    • getAudioFormat

      public AudioFormat getAudioFormat()
      Specified by:
      getAudioFormat in interface ICodec
    • initialized

      private boolean initialized(boolean bool, boolean bool2)
    • endOfStream

      private boolean endOfStream(boolean bool, boolean bool2)
    • trimArray

      private static byte[] trimArray(byte[] byte2, int int2)
    • convertAudioBytes

      private static byte[] convertAudioBytes(byte[] byte2, boolean bool)
    • appendByteArrays

      private static byte[] appendByteArrays(byte[] byte2, byte[] byte3, int int2)
    • errorMessage

      private void errorMessage(String string)
    • printStackTrace

      private void printStackTrace(Exception exception)