Hello!

I'm rather newbie in FLAC decoding and found following problem. During FLAC playback I need to provide current time played. Usage of simple propotion to determine this give to me inaccurate time. If wish to reate separate CUE sheet support on this it will be bugged and broken. So here is a questions.

How to determine accurately time position in stream knowing byte position returned by get_decode_position API call ? In case of impossibility is there other way to calculate it accurately? (I think it should be because foobar2000 have no issues with detection of position time in stream during playback) Maybe somehow through the seekpoint table?

Audio processing gurus, please help to resolve this.