public class WavStream
extends stream.io.AbstractStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
blockSize |
protected Long |
blocksRead |
| Constructor and Description |
|---|
WavStream(stream.io.SourceURL source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBlockSize() |
int |
getBytesPerSample() |
Long |
getSampleRate() |
void |
init() |
static void |
main(String[] args) |
stream.Data |
readNext() |
double |
readSample() |
void |
setBlockSize(int blockSize) |
protected int blockSize
protected Long blocksRead
public int getBytesPerSample()
public Long getSampleRate()
public int getBlockSize()
public void setBlockSize(int blockSize)
blockSize - the blockSize to setpublic void init()
throws Exception
init in interface stream.io.Sourceinit in class stream.io.AbstractStreamExceptionpublic double readSample()
throws IOException,
WavFileException
IOExceptionWavFileExceptionpublic stream.Data readNext()
throws Exception
readNext in class stream.io.AbstractStreamExceptionpublic void close()
throws Exception
close in interface stream.io.Sourceclose in class stream.io.AbstractStreamExceptionpublic static void main(String[] args)
Copyright © 2013. All Rights Reserved.