public class WavWriter extends Object
| Constructor and Description |
|---|
WavWriter(DataOutput os)
The constructor.
|
WavWriter(DataOutput os,
StreamInfo streamInfo)
The constructor.
|
WavWriter(OutputStream os)
The constructor.
|
WavWriter(OutputStream os,
Long totalSamples,
Integer channels,
Integer bps,
Integer sampleRate)
The constructor.
|
WavWriter(OutputStream os,
StreamInfo streamInfo)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeFrame(Frame frame,
ChannelData[] channelData)
Write a WAV frame record.
|
void |
writeHeader()
Write a WAV file header.
|
void |
writeHeader(StreamInfo streamInfo)
Write a WAV file header.
|
void |
writePCM(ByteData space)
Write the PCM data.
|
public WavWriter(DataOutput os, StreamInfo streamInfo)
os - The output sreamstreamInfo - The FLAC stream infopublic WavWriter(DataOutput os)
os - The output sreampublic WavWriter(OutputStream os, StreamInfo streamInfo)
os - The output sreamstreamInfo - The FLAC stream infopublic WavWriter(OutputStream os, Long totalSamples, Integer channels, Integer bps, Integer sampleRate)
os - The output sreamtotalSamples - The total samples to be writtenchannels - Number of channelsbps - Number of bits per samplesampleRate - Sample rate per secondpublic WavWriter(OutputStream os)
os - The output sreampublic void writeHeader()
throws IOException
IOException - Thrown if error writing to output string.public void writeHeader(StreamInfo streamInfo) throws IOException
streamInfo - The FLAC stream infoIOException - Thrown if error writing to output string.public void writeFrame(Frame frame, ChannelData[] channelData) throws IOException
frame - The FLAC framechannelData - The decoded channel dataIOException - Thrown if error writing to output channelpublic void writePCM(ByteData space) throws IOException
space - The PCM dataIOException - Thrown if error writing to fileCopyright © 2004–2017. All rights reserved.