Scot Thompson
2006-Mar-19 22:07 UTC
[Flac] Patch -- Decode Position for libFLAC++ file and seekable_stream decoder
Index: src/libFLAC++/file_decoder.cpp ==================================================================RCS file: /cvsroot/flac/flac/src/libFLAC++/file_decoder.cpp,v retrieving revision 1.9 diff -u -r1.9 file_decoder.cpp --- src/libFLAC++/file_decoder.cpp 25 Jan 2005 04:18:35 -0000 1.9 +++ src/libFLAC++/file_decoder.cpp 20 Mar 2006 05:53:19 -0000 @@ -159,6 +159,12 @@ return ::FLAC__file_decoder_get_blocksize(decoder_); } + bool File::get_decode_position(FLAC__uint64 *position) const + { + FLAC__ASSERT(is_valid()); + return (bool)::FLAC__file_decoder_get_decode_position(decoder_, position); + } + File::State File::init() { FLAC__ASSERT(0 != decoder_); Index: src/libFLAC++/seekable_stream_decoder.cpp ==================================================================RCS file: /cvsroot/flac/flac/src/libFLAC++/seekable_stream_decoder.cpp,v retrieving revision 1.9 diff -u -r1.9 seekable_stream_decoder.cpp --- src/libFLAC++/seekable_stream_decoder.cpp 25 Jan 2005 04:18:35 -0000 1.9 +++ src/libFLAC++/seekable_stream_decoder.cpp 20 Mar 2006 05:54:52 -0000 @@ -147,6 +147,12 @@ return ::FLAC__seekable_stream_decoder_get_blocksize(decoder_); } + bool SeekableStream::get_decode_position(FLAC__uint64 *position) const + { + FLAC__ASSERT(is_valid()); + return (bool)::FLAC__seekable_stream_decoder_get_decode_position(decoder_, position); + } + SeekableStream::State SeekableStream::init() { FLAC__ASSERT(is_valid()); -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20060319/88d81a4c/attachment.html