@Environment(value=CLIENT) public class RepeatingAudioStream extends Object implements AudioStream
Modifier and Type | Class and Description |
---|---|
static interface |
RepeatingAudioStream.DelegateFactory |
(package private) static class |
RepeatingAudioStream.ReusableInputStream |
Modifier and Type | Field and Description |
---|---|
private AudioStream |
delegate |
private RepeatingAudioStream.DelegateFactory |
delegateFactory |
private BufferedInputStream |
inputStream |
Constructor and Description |
---|
RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory,
InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ByteBuffer |
getBuffer(int size) |
AudioFormat |
getFormat() |
private final RepeatingAudioStream.DelegateFactory delegateFactory
private AudioStream delegate
private final BufferedInputStream inputStream
public RepeatingAudioStream(RepeatingAudioStream.DelegateFactory delegateFactory, InputStream inputStream) throws IOException
IOException
public AudioFormat getFormat()
getFormat
in interface AudioStream
public ByteBuffer getBuffer(int size) throws IOException
getBuffer
in interface AudioStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException