[Flac-dev] problem with seek_absolute in libFLAC++

Matt Zimmerman mdz at debian.org
Wed Jun 19 12:09:10 PDT 2002

On Wed, Jun 19, 2002 at 06:40:59PM +1000, David Collett wrote:

> When I call the seek_absolute() function eg.
> seek_absolute(3561525);
> and step inside it with gdb, then print the value of "sample" (the 
> arguement), it is NOT 3561525, rather it is some huge number like 
> 4621539102901141517.

This can happen sometimes when a function is optimized in certain ways.  Add
a bit of code to print the value of sample upon entering the function, and
you will probably find it to be correct.

You may want to build libFLAC/libFLAC++ without optimization for debugging

 - mdz

More information about the Flac-dev mailing list