public class FormatVersionChunk extends Chunk
The Format Version Chunk contains a date field to indicate the format rules for an AIFF-C specification. This will enable smoother future upgrades to this specification.
ckID is always 'FVER'.
ckDataSize
is the size of the data portion of the chunk, in bytes. It does not
include the 8 bytes used by ckID and ckDataSize. For this Chunk, ckDataSize has a value of 4.
timeStamp
indicates when the format version for the AIFF-C file was created.
Units are the number of seconds since January 1, 1904. (This time convention is the one
used by the Macintosh. For procedures that manipulate the time stamp, see The Operating
System Utilities chapter in Inside Macintosh, vol II ). For a routine that will convert
this to an Apple II GS/OS format time, please see Apple II File Type Note for filetype
0xD8, aux type 0x0000.
The Format Version Chunk is required. One and only one Format Version Chunk must appear in a FORM AIFC.
chunkData, chunkHeader
Constructor and Description |
---|
FormatVersionChunk(ChunkHeader chunkHeader,
ByteBuffer chunkData,
AiffAudioHeader aiffAudioHeader) |
public FormatVersionChunk(ChunkHeader chunkHeader, ByteBuffer chunkData, AiffAudioHeader aiffAudioHeader)
chunkHeader
- The header for this chunkchunkData
- The buffer from which the AIFF data are being readaiffAudioHeader
- The AiffTag into which information is storedpublic boolean readChunk() throws IOException
readChunk
in class Chunk
false
if the chunk is structurally
invalid, otherwise true
IOException
Copyright © 2005–2020 jthink.net. All rights reserved.