mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add VORBIS_COMMENT metadata block
This commit is contained in:
@@ -390,7 +390,10 @@
|
|||||||
<TT>3</TT> : SEEKTABLE
|
<TT>3</TT> : SEEKTABLE
|
||||||
</LI>
|
</LI>
|
||||||
<LI>
|
<LI>
|
||||||
<TT>3-127</TT> : reserved
|
<TT>4</TT> : VORBIS_COMMENT
|
||||||
|
</LI>
|
||||||
|
<LI>
|
||||||
|
<TT>5-127</TT> : reserved
|
||||||
</LI>
|
</LI>
|
||||||
</UL>
|
</UL>
|
||||||
</TD>
|
</TD>
|
||||||
@@ -417,7 +420,7 @@
|
|||||||
</TR>
|
</TR>
|
||||||
<TR>
|
<TR>
|
||||||
<TD ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
|
<TD ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
|
||||||
<A HREF="#metadata_block_streaminfo"><I>METADATA_BLOCK_STREAMINFO</I></A><BR>|| <A HREF="#metadata_block_padding"><I>METADATA_BLOCK_PADDING</I></A><BR>|| <A HREF="#metadata_block_application"><I>METADATA_BLOCK_APPLICATION</I></A><BR>|| <A HREF="#metadata_block_seektable"><I>METADATA_BLOCK_SEEKTABLE</I></A>
|
<A HREF="#metadata_block_streaminfo"><I>METADATA_BLOCK_STREAMINFO</I></A><BR>|| <A HREF="#metadata_block_padding"><I>METADATA_BLOCK_PADDING</I></A><BR>|| <A HREF="#metadata_block_application"><I>METADATA_BLOCK_APPLICATION</I></A><BR>|| <A HREF="#metadata_block_seektable"><I>METADATA_BLOCK_SEEKTABLE</I></A><BR>|| <A HREF="#metadata_block_vorbis_comment"><I>METADATA_BLOCK_VORBIS_COMMENT</I></A>
|
||||||
</TD>
|
</TD>
|
||||||
<TD>
|
<TD>
|
||||||
The block data must match the block type in the block header.
|
The block data must match the block type in the block header.
|
||||||
@@ -660,6 +663,26 @@
|
|||||||
</TD></TR></TABLE>
|
</TD></TR></TABLE>
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
<P>
|
||||||
|
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
|
||||||
|
<TABLE WIDTH="100%" BORDER="1">
|
||||||
|
<TR>
|
||||||
|
<TD COLSPAN="2" BGCOLOR="#D3D4C5">
|
||||||
|
<A NAME="metadata_block_vorbis_comment"><FONT SIZE="+1"><B>METADATA_BLOCK_VORBIS_COMMENT</B></FONT></A>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
<TR>
|
||||||
|
<TD ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
|
||||||
|
<n>
|
||||||
|
</TD>
|
||||||
|
<TD>
|
||||||
|
The contents of a vorbis comment packet as specified <A HREF="http://www.xiph.org/ogg/vorbis/doc/v-comment.html">here</A>, 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.
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
</TD></TR></TABLE>
|
||||||
|
</P>
|
||||||
|
|
||||||
<P>
|
<P>
|
||||||
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
|
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#EEEED4"><TR><TD>
|
||||||
<TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
|
<TABLE WIDTH="100%" BORDER="1" BGCOLOR="#EEEED4">
|
||||||
|
|||||||
@@ -330,7 +330,8 @@ typedef enum {
|
|||||||
FLAC__METADATA_TYPE_STREAMINFO = 0,
|
FLAC__METADATA_TYPE_STREAMINFO = 0,
|
||||||
FLAC__METADATA_TYPE_PADDING = 1,
|
FLAC__METADATA_TYPE_PADDING = 1,
|
||||||
FLAC__METADATA_TYPE_APPLICATION = 2,
|
FLAC__METADATA_TYPE_APPLICATION = 2,
|
||||||
FLAC__METADATA_TYPE_SEEKTABLE = 3
|
FLAC__METADATA_TYPE_SEEKTABLE = 3,
|
||||||
|
FLAC__METADATA_TYPE_VORBIS_COMMENT = 4
|
||||||
} FLAC__MetaDataType;
|
} FLAC__MetaDataType;
|
||||||
extern const char *FLAC__MetaDataTypeString[];
|
extern const char *FLAC__MetaDataTypeString[];
|
||||||
|
|
||||||
|
|||||||
@@ -106,5 +106,6 @@ const char *FLAC__MetaDataTypeString[] = {
|
|||||||
"STREAMINFO",
|
"STREAMINFO",
|
||||||
"PADDING",
|
"PADDING",
|
||||||
"APPLICATION",
|
"APPLICATION",
|
||||||
"SEEKTABLE"
|
"SEEKTABLE",
|
||||||
|
"VORBIS_COMMENT"
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user