Package net.minecraft.client.audio
Class OggAudioStreamWrapper
- java.lang.Object
-
- net.minecraft.client.audio.OggAudioStreamWrapper
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,IAudioStream
public class OggAudioStreamWrapper extends java.lang.Object implements IAudioStream
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OggAudioStreamWrapper.IFactory
(package private) static class
OggAudioStreamWrapper.Stream
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedInputStream
bufferedInputStream
private OggAudioStreamWrapper.IFactory
provider
private IAudioStream
stream
-
Constructor Summary
Constructors Constructor Description OggAudioStreamWrapper(OggAudioStreamWrapper.IFactory p_i232496_1_, java.io.InputStream p_i232496_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
javax.sound.sampled.AudioFormat
getFormat()
java.nio.ByteBuffer
read(int p_216455_1_)
-
-
-
Field Detail
-
provider
private final OggAudioStreamWrapper.IFactory provider
-
stream
private IAudioStream stream
-
bufferedInputStream
private final java.io.BufferedInputStream bufferedInputStream
-
-
Constructor Detail
-
OggAudioStreamWrapper
public OggAudioStreamWrapper(OggAudioStreamWrapper.IFactory p_i232496_1_, java.io.InputStream p_i232496_2_) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getFormat
public javax.sound.sampled.AudioFormat getFormat()
- Specified by:
getFormat
in interfaceIAudioStream
-
read
public java.nio.ByteBuffer read(int p_216455_1_) throws java.io.IOException
- Specified by:
read
in interfaceIAudioStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-