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
IOException
public int read(ByteBuffer buf) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public WavHeader getHeader()
public AudioFormat getFormat()
Copyright © 2019. All rights reserved.