public class WavInput extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
WavInput.Source
Supports more high-level float and integer input on top of WavInput
|
static class |
WavInput.WavFile
Manages file resource on top of WavInput
|
| Modifier and Type | Field and Description |
|---|---|
protected ReadableByteChannel |
_in |
protected AudioFormat |
format |
protected WavHeader |
header |
protected byte[] |
prevBuf |
| Constructor and Description |
|---|
WavInput(ReadableByteChannel _in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AudioFormat |
getFormat() |
WavHeader |
getHeader() |
int |
read(ByteBuffer buf) |
protected WavHeader header
protected byte[] prevBuf
protected ReadableByteChannel _in
protected AudioFormat format
public WavInput(ReadableByteChannel _in) throws IOException
IOExceptionpublic int read(ByteBuffer buf) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic WavHeader getHeader()
public AudioFormat getFormat()
Copyright © 2019. All rights reserved.