public static class WavInput.Source extends Object implements AudioSource, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AudioFormat |
getFormat() |
int |
read(int[] samples,
int max) |
int |
readFloat(FloatBuffer samples) |
public Source(WavInput src)
public AudioFormat getFormat()
getFormat in interface AudioSourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int read(int[] samples,
int max)
throws IOException
IOExceptionpublic int readFloat(FloatBuffer samples) throws IOException
readFloat in interface AudioSourceIOExceptionCopyright © 2019. All rights reserved.