public class WavWriter extends Object
| Constructor and Description |
|---|
WavWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
export(String fileName,
int sampleRate,
byte[] samples)
Export an array of bytes to a wav file.
|
void |
export(String fileName,
int sampleRate,
short[] samples)
Export an array of shorts to a wav file.
|
public void export(String fileName, int sampleRate, short[] samples) throws IOException
fileName - The name of the wav file.sampleRate - The sample rate.samples - The array of short samples.IOException - IOExceptionpublic void export(String fileName, int sampleRate, byte[] samples) throws IOException
fileName - The name of the wav file.sampleRate - The sample rate.samples - The array of short samples, given as a byte array (with low and hi bytes separated).IOException - IOExceptionCopyright © 2000–2022 DFKI GmbH. All rights reserved.