From 7e19b549932a6821a84c803ece1e6b5a996de2f2 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 25 Apr 2002 05:53:09 +0000 Subject: [PATCH] add VORBIS_COMMENT metadata block --- doc/format.html | 27 +++++++++++++++++++++++++-- include/FLAC/format.h | 3 ++- src/libFLAC/format.c | 3 ++- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/doc/format.html b/doc/format.html index 7a072c1..2171981 100644 --- a/doc/format.html +++ b/doc/format.html @@ -390,7 +390,10 @@ 3 : SEEKTABLE
  • - 3-127 : reserved + 4 : VORBIS_COMMENT +
  • +
  • + 5-127 : reserved
  • @@ -417,7 +420,7 @@ - METADATA_BLOCK_STREAMINFO
    || METADATA_BLOCK_PADDING
    || METADATA_BLOCK_APPLICATION
    || METADATA_BLOCK_SEEKTABLE + METADATA_BLOCK_STREAMINFO
    || METADATA_BLOCK_PADDING
    || METADATA_BLOCK_APPLICATION
    || METADATA_BLOCK_SEEKTABLE
    || METADATA_BLOCK_VORBIS_COMMENT The block data must match the block type in the block header. @@ -662,6 +665,26 @@

    + + + + + + + + +
    + METADATA_BLOCK_VORBIS_COMMENT +
    + <n> + + The contents of a vorbis comment packet as specified here, including the vendor string. Note that the vorbis comment spec allows for on the order of 2 ^ 64 bytes of data where as the FLAC metadata block is limited to 2 ^ 24 bytes. Given the stated purpose of vorbis comments, i.e. human-readable textual information, this limit is unlikely to be restrictive. +
    +
    +

    + +

    +
    diff --git a/include/FLAC/format.h b/include/FLAC/format.h index b1f4f60..c43b1bd 100644 --- a/include/FLAC/format.h +++ b/include/FLAC/format.h @@ -330,7 +330,8 @@ typedef enum { FLAC__METADATA_TYPE_STREAMINFO = 0, FLAC__METADATA_TYPE_PADDING = 1, FLAC__METADATA_TYPE_APPLICATION = 2, - FLAC__METADATA_TYPE_SEEKTABLE = 3 + FLAC__METADATA_TYPE_SEEKTABLE = 3, + FLAC__METADATA_TYPE_VORBIS_COMMENT = 4 } FLAC__MetaDataType; extern const char *FLAC__MetaDataTypeString[]; diff --git a/src/libFLAC/format.c b/src/libFLAC/format.c index 060c667..25f7f8d 100644 --- a/src/libFLAC/format.c +++ b/src/libFLAC/format.c @@ -106,5 +106,6 @@ const char *FLAC__MetaDataTypeString[] = { "STREAMINFO", "PADDING", "APPLICATION", - "SEEKTABLE" + "SEEKTABLE", + "VORBIS_COMMENT" }; -- 2.7.4