Package net.minecraft.client.audio
Class OggAudioStream
java.lang.Object
net.minecraft.client.audio.OggAudioStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IAudioStream
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AudioFormat
private ByteBuffer
private long
private final InputStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
convertMono
(FloatBuffer p_216457_1_, OggAudioStream.Buffer p_216457_2_) private void
convertStereo
(FloatBuffer p_216458_1_, FloatBuffer p_216458_2_, OggAudioStream.Buffer p_216458_3_) private void
read
(int p_216455_1_) readAll()
private boolean
readFrame
(OggAudioStream.Buffer p_216460_1_) private boolean
-
Field Details
-
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_216458_1_, FloatBuffer p_216458_2_, OggAudioStream.Buffer p_216458_3_) -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFormat
- Specified by:
getFormat
in interfaceIAudioStream
-
read
- Specified by:
read
in interfaceIAudioStream
- Throws:
IOException
-
readAll
- Throws:
IOException
-