public class WavOutput extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
WavOutput.Sink
Supports more high-level float and int array output on top of WavOutput
|
static class |
WavOutput.WavOutFile
Manages the file resource on top of WavOutput
|
Modifier and Type | Field and Description |
---|---|
protected AudioFormat |
format |
protected WavHeader |
header |
protected SeekableByteChannel |
out |
protected int |
written |
Constructor and Description |
---|
WavOutput(SeekableByteChannel out,
AudioFormat format) |
protected SeekableByteChannel out
protected WavHeader header
protected int written
protected AudioFormat format
public WavOutput(SeekableByteChannel out, AudioFormat format) throws IOException
IOException
public void write(ByteBuffer samples) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019. All rights reserved.