Class CodecJOrbis

java.lang.Object
paulscode.sound.codecs.CodecJOrbis
All Implemented Interfaces:
ICodec
Direct Known Subclasses:
class_309

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

    • GET

      private static final boolean GET
      See Also:
    • SET

      private static final boolean SET
      See Also:
    • XXX

      private static final boolean XXX
      See Also:
    • LITTLE_ENDIAN

      private static final boolean LITTLE_ENDIAN
    • url

      protected URL url
    • urlConnection

      protected URLConnection urlConnection
    • inputStream

      private InputStream inputStream
    • audioFormat

      private AudioFormat audioFormat
    • endOfStream

      private boolean endOfStream
    • initialized

      private boolean initialized
    • buffer

      private byte[] buffer
    • bufferSize

      private int bufferSize
    • count

      private int count
    • index

      private int index
    • convertedBufferSize

      private int convertedBufferSize
    • pcmInfo

      private float[][][] pcmInfo
    • pcmIndex

      private int[] pcmIndex
    • joggPacket

      private Packet joggPacket
    • joggPage

      private Page joggPage
    • joggStreamState

      private StreamState joggStreamState
    • joggSyncState

      private SyncState joggSyncState
    • jorbisDspState

      private DspState jorbisDspState
    • jorbisBlock

      private Block jorbisBlock
    • jorbisComment

      private Comment jorbisComment
    • jorbisInfo

      private Info jorbisInfo
    • logger

      private SoundSystemLogger logger
  • Constructor Details

    • CodecJOrbis

      public CodecJOrbis()
  • 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
    • openInputStream

      protected InputStream openInputStream()
    • 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
    • readHeader

      private boolean readHeader()
    • readBytes

      private byte[] readBytes()
    • decodeCurrentPacket

      private byte[] decodeCurrentPacket()
    • 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)
    • appendByteArrays

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

      private void errorMessage(String string)
    • printStackTrace

      private void printStackTrace(Exception exception)