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 interfaceOggAudioStreamWrapper.IFactory(package private) static classOggAudioStreamWrapper.Stream
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedInputStreambufferedInputStreamprivate OggAudioStreamWrapper.IFactoryproviderprivate IAudioStreamstream
-
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 voidclose()javax.sound.sampled.AudioFormatgetFormat()java.nio.ByteBufferread(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:
getFormatin interfaceIAudioStream
-
read
public java.nio.ByteBuffer read(int p_216455_1_) throws java.io.IOException- Specified by:
readin interfaceIAudioStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-