Package com.mojang.blaze3d.audio
Class OggAudioStream
java.lang.Object
com.mojang.blaze3d.audio.OggAudioStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AudioStream
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate AudioFormat
private ByteBuffer
private static int
private long
private InputStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
convertMono(FloatBuffer p_83758_, OggAudioStream.OutputConcat p_83759_)
private void
convertStereo(FloatBuffer p_83761_, FloatBuffer p_83762_, OggAudioStream.OutputConcat p_83763_)
private void
read(int p_83754_)
readAll()
private boolean
readFrame(OggAudioStream.OutputConcat p_83756_)
private boolean
-
Field Details
-
EXPECTED_MAX_FRAME_SIZE
private static final int EXPECTED_MAX_FRAME_SIZE- See Also:
- Constant Field Values
-
handle
private long handle -
audioFormat
-
input
-
buffer
-
-
Constructor Details
-
OggAudioStream
- Throws:
IOException
-
-
Method Details
-
refillFromStream
- Throws:
IOException
-
forwardBuffer
private void forwardBuffer() -
readFrame
- Throws:
IOException
-
convertMono
-
convertStereo
private void convertStereo(FloatBuffer p_83761_, FloatBuffer p_83762_, OggAudioStream.OutputConcat p_83763_) -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFormat
- Specified by:
getFormat
in interfaceAudioStream
-
read
- Specified by:
read
in interfaceAudioStream
- Throws:
IOException
-
readAll
- Throws:
IOException
-