public class FormatChunk extends Chunk
| Modifier and Type | Field and Description |
|---|---|
static int |
WAVE_FORMAT_EXTENSIBLE
Compression code for Microsoft Extensible Wave Format
|
static int |
WAVE_FORMAT_MPEG
Compression code for MPEG
|
static int |
WAVE_FORMAT_PCM
Compression code for original Microsoft PCM
|
_dstream, _module, bytesLeft, chunkOffset, chunkSize, HEADER_LENGTH, ID_LENGTH, SIZE_LENGTH| Constructor and Description |
|---|
FormatChunk(WaveModule module,
ChunkHeader hdr,
DataInputStream dstrm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
readChunk(RepInfo info)
Reads a chunk and puts appropriate Properties into the RepInfo object.
|
byteBufStringpublic static final int WAVE_FORMAT_PCM
public static final int WAVE_FORMAT_MPEG
public static final int WAVE_FORMAT_EXTENSIBLE
public FormatChunk(WaveModule module, ChunkHeader hdr, DataInputStream dstrm)
module - The WaveModule under which this was calledhdr - The header for this chunkdstrm - The stream from which the WAVE data are being readpublic boolean readChunk(RepInfo info) throws IOException
readChunk in class Chunkfalse if the chunk is structurally invalid,
otherwise trueIOExceptionCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.