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 interfaceRepeatingAudioStream.DelegateFactory(package private) static classRepeatingAudioStream.ReusableInputStream -
Field Summary
Fields Modifier and Type Field Description private AudioStreamdelegateprivate RepeatingAudioStream.DelegateFactorydelegateFactoryprivate BufferedInputStreaminputStream -
Constructor Summary
Constructors Constructor Description RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream) -
Method Summary
Modifier and Type Method Description voidclose()ByteBuffergetBuffer(int size)AudioFormatgetFormat()
-
Field Details
-
delegateFactory
-
delegate
-
inputStream
-
-
Constructor Details
-
RepeatingAudioStream
public RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream) throws IOException- Throws:
IOException
-
-
Method Details
-
getFormat
- Specified by:
getFormatin interfaceAudioStream
-
getBuffer
- Specified by:
getBufferin interfaceAudioStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-