* Josh Coalson <[EMAIL PROTECTED]> shaped the electrons to say...

yep, that will work too.  but just writing skipping code is
pretty simple:

is_last=0
read 'fLaC' string
while (!is_last) {
  read 1 byte metadata block type
  read 3 byte metadata block length
  is_last = type & 0x80
  fseek(file,length,SEEK_CUR)
}
last_offset=ftell(file)

see also:
 http://flac.sourceforge.net/format.html#metadata_block_header
'length' is big-endian

Should type be of FLAC__byte, and length of FLAC__uint32? I'm not having much luck here.. (not a C programmer by nature).


-D -- This movie has warped my fragile little mind. _______________________________________________ Flac-dev mailing list [EMAIL PROTECTED] http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to