Package net.minecraft.client.sound
Class RepeatingAudioStream
java.lang.Object
net.minecraft.client.sound.RepeatingAudioStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AudioStream
@Environment(CLIENT) public class RepeatingAudioStream extends Object implements AudioStream
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RepeatingAudioStream.DelegateFactory
(package private) static class
RepeatingAudioStream.ReusableInputStream
-
Field Summary
Fields Modifier and Type Field Description private AudioStream
delegate
private RepeatingAudioStream.DelegateFactory
delegateFactory
private BufferedInputStream
inputStream
-
Constructor Summary
Constructors Constructor Description RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream)
-
Method Summary
Modifier and Type Method Description void
close()
ByteBuffer
getBuffer(int size)
AudioFormat
getFormat()
-
Field Details
-
delegateFactory
-
delegate
-
inputStream
-
-
Constructor Details
-
RepeatingAudioStream
public RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream) throws IOException- Throws:
IOException
-
-
Method Details
-
getFormat
- Specified by:
getFormat
in interfaceAudioStream
-
getBuffer
- Specified by:
getBuffer
in interfaceAudioStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-