Package com.mojang.blaze3d.audio
Class OggAudioStream
java.lang.Object
com.mojang.blaze3d.audio.OggAudioStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- AudioStream
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final AudioFormatprivate ByteBufferprivate static final intprivate longprivate final InputStream
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_SIZEprivate static final int EXPECTED_MAX_FRAME_SIZE- See Also:
 
- 
handleprivate long handle
- 
audioFormat
- 
input
- 
buffer
 
- 
- 
Constructor Details- 
OggAudioStream- Throws:
- IOException
 
 
- 
- 
Method Details- 
refillFromStream- Throws:
- IOException
 
- 
forwardBufferprivate void forwardBuffer()
- 
readFrame- Throws:
- IOException
 
- 
convertMono
- 
convertStereoprivate void convertStereo(FloatBuffer p_83761_, FloatBuffer p_83762_, OggAudioStream.OutputConcat p_83763_) 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
- 
getFormat- Specified by:
- getFormatin interface- AudioStream
 
- 
read- Specified by:
- readin interface- AudioStream
- Throws:
- IOException
 
- 
readAll- Throws:
- IOException
 
 
-