I managed to re-produce the problem.
It is not a private case - the get current position logic was done incorrectly in FLACReader/NAudioFlac.
The root cause is (well me) the weird and inconsistent way libFlac works, in particular the FLAC__stream_decoder_get_decode_position() function that returns the byte position in the frame which is useless.
I figured out how to get the current playing sample number in a different way.
My fixed version sets and gets proper time values - still under testing.
Once I verify this fix is good, I will commit to Practice# SVN - To update NAudioFlac and also Practice# App.
Thanks
Yuval
It is not a private case - the get current position logic was done incorrectly in FLACReader/NAudioFlac.
The root cause is (well me) the weird and inconsistent way libFlac works, in particular the FLAC__stream_decoder_get_decode_position() function that returns the byte position in the frame which is useless.
I figured out how to get the current playing sample number in a different way.
My fixed version sets and gets proper time values - still under testing.
Once I verify this fix is good, I will commit to Practice# SVN - To update NAudioFlac and also Practice# App.
Thanks
Yuval