Brian Willoughby wrote:

> What about fseeko()? I use that in my ObjC library for converting  
> between AIFF, FLAC, and WAVE. It takes an unsigned 32-bit offset, as  
> contrasted with fseek() classic. Unless you need negative offsets,  
> that seems like a simple change.
> 
> FLAC__stream_decoder_seek_absolute() already takes a FLAC__uint64  
> offset. I just cast my 32-bit unsigned long and use that in the  
> existing FLAC API.

I said offset_t, but I meant off_t.

The public header file FLAC/metadata.h returns off_t from funtcion:

FLAC_API off_t FLAC__metadata_simple_iterator_get_block_offset(const 
FLAC__Metadata_SimpleIterator *iterator);

That needs to be fixed.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to