Package com.mojang.blaze3d.audio
Class OggAudioStream
java.lang.Object
com.mojang.blaze3d.audio.OggAudioStream
- All Implemented Interfaces:
Closeable,AutoCloseable,AudioStream
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AudioFormatprivate ByteBufferprivate static final intprivate longprivate final InputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidconvertMono(FloatBuffer p_83758_, OggAudioStream.OutputConcat p_83759_) private voidconvertStereo(FloatBuffer p_83761_, FloatBuffer p_83762_, OggAudioStream.OutputConcat p_83763_) private voidread(int p_83754_) readAll()private booleanreadFrame(OggAudioStream.OutputConcat p_83756_) private boolean
-
Field Details
-
EXPECTED_MAX_FRAME_SIZE
private static final int EXPECTED_MAX_FRAME_SIZE- See Also:
-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFormat
- Specified by:
getFormatin interfaceAudioStream
-
read
- Specified by:
readin interfaceAudioStream- Throws:
IOException
-
readAll
- Throws:
IOException
-