From 6eaab33de9acbce6c5fcde57975575a42fdc8218 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 2 Mar 2001 21:20:36 +0000 Subject: [PATCH] add docs for APPLICATION and PADDING blocks --- doc/format.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/format.html b/doc/format.html index f634b4fd..62daeb59 100644 --- a/doc/format.html +++ b/doc/format.html @@ -27,6 +27,7 @@   features  |   goals  |   format  | +   id  |   comparison  |   documentation  |   developers   @@ -215,7 +216,12 @@ A FLAC bitstream consists of the "fLaC" marker at the beginning of the stream, followed by a mandatory metadata block (called the STREAMINFO block), any number of other metadata blocks, then the audio frames.

  • - FLAC supports up to 128 kinds of metadata blocks, but currently only one is defined. This is the STREAMINFO block, which has info about the whole stream like sample rate, number of channels, total number of samples, etc. This block must be present as the first metadata block in the stream. Other metadata blocks may follow, and ones that the decoder doesn't understand, it will skip. + FLAC supports up to 128 kinds of metadata blocks; currently the following are defined: +
  • The audio data is composed of one or more audio frames. Each frame consists of a frame header, which contains a sync code, info about the frame like the block size, sample rate, number of channels, et cetera, and an 8-bit CRC. The frame header also contains either the sample number of the first sample in the frame (for variable-blocksize streams), or the frame number (for fixed-blocksize streams). This allows for fast, sample-accurate seeking to be performed. Following the frame header are encoded subframes, one for each channel, and finally, the frame is zero-padded to a byte boundary. Each subframe has its own header that specifies how the subframe is encoded. @@ -525,7 +531,7 @@ <32> - Registered application ID + Registered application ID. (Visit the registration page to register an ID with FLAC.)