private long[] sample_buffer;
private int totalSamples;
@Override
public boolean open(File outputFile, AudioFormat fmt, Configuration options) {
wpc = new WavpackContext();
WavpackConfig config = wpc.config;
try {
wpc.outfile = new RandomAccessFile(outputFile, "rw");
wpc.outfile.setLength(0);
if (options != null) {