@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
IOExceptionpublic AudioFormat getFormat()
getFormat in interface AudioStreampublic ByteBuffer getBuffer(int size) throws IOException
getBuffer in interface AudioStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException