<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Just to clarify this a bit...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>An audio file tag format uses 4 bytes to
store a flag to indicate whether text or binary information is stored
in the following tag. </FONT><FONT face=Arial size=2>The C++ source code
uses these definitions</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#define
TAG_FIELD_FLAG_DATA_TYPE_MASK
(6)<BR>#define TAG_FIELD_FLAG_DATA_TYPE_TEXT_UTF8
(0 << 1)<BR>#define
TAG_FIELD_FLAG_DATA_TYPE_BINARY
(1 << 1)<BR>#define TAG_FIELD_FLAG_DATA_TYPE_EXTERNAL_INFO (2
<< 1)<BR>#define
TAG_FIELD_FLAG_DATA_TYPE_RESERVED (3
<< 1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Am I correct in assuming that a Binary flag will
appear like this in the file (in Hex).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>00 00 00 02</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Effectively a big endian value of 02.
Is this correct?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ross@stationplaylist.com href="mailto:ross@stationplaylist.com">Ross
Levis</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz
href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 13, 2006 8:17
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG] C code help</DIV>
<DIV><BR></DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>> So TAG_FIELD_FLAG_DATA_TYPE is a one-bit
flag stored in the 2nd-rightmost bit of the word, and its possible values are
TEXT_UTF8 (value 0) and BINARY (value 1).</FONT></DIV>
<DIV> </DIV>
<DIV>I see. Thanks for that.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bswrigley@xtra.co.nz href="mailto:bswrigley@xtra.co.nz">Brian
Wrigley</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz
href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 13, 2006 7:32
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [DUG] C code help</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>That's the bitwise shift-left operator. So, 0
shifted left 1 bit is still zero, 1 shifted left 1 bit is 2. 1 shifted left
30 bits would be (hex) 40000000.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Brian</FONT><FONT face=Arial
size=2></FONT></DIV></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Delphi mailing
list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR></BLOCKQUOTE></BODY></HTML>