public class WavStream
extends stream.io.AbstractStream
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
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) |
public int getBytesPerSample()
public Long getSampleRate()
public int getBlockSize()
@Parameter(description="The number of samples (double values) read from the stream for each data item.") 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 © 2015. All rights reserved.