Package net.minecraft.client.sound
Class OggAudioStream
java.lang.Object
net.minecraft.client.sound.OggAudioStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AudioStream
@Environment(CLIENT) public class OggAudioStream extends Object implements AudioStream
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
OggAudioStream.ChannelList
-
Field Summary
Fields Modifier and Type Field Description private ByteBuffer
buffer
private AudioFormat
format
private InputStream
inputStream
private long
pointer
-
Constructor Summary
Constructors Constructor Description OggAudioStream(InputStream inputStream)
-
Method Summary
Modifier and Type Method Description void
close()
ByteBuffer
getBuffer()
ByteBuffer
getBuffer(int size)
AudioFormat
getFormat()
private void
increaseBufferSize()
private void
readChannels(FloatBuffer floatBuffer, FloatBuffer floatBuffer2, OggAudioStream.ChannelList channelList)
private void
readChannels(FloatBuffer floatBuffer, OggAudioStream.ChannelList channelList)
private boolean
readHeader()
private boolean
readOggFile(OggAudioStream.ChannelList channelList)
-
Field Details
-
pointer
private long pointer -
format
-
inputStream
-
buffer
-
-
Constructor Details
-
OggAudioStream
- Throws:
IOException
-
-
Method Details
-
readHeader
- Throws:
IOException
-
increaseBufferSize
private void increaseBufferSize() -
readOggFile
- Throws:
IOException
-
readChannels
-
readChannels
private void readChannels(FloatBuffer floatBuffer, FloatBuffer floatBuffer2, OggAudioStream.ChannelList channelList) -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFormat
- Specified by:
getFormat
in interfaceAudioStream
-
getBuffer
- Specified by:
getBuffer
in interfaceAudioStream
- Throws:
IOException
-
getBuffer
- Throws:
IOException
-