> Hello, I have problems getting sample position from libFLAC.
> FLAC__stream_decoder_get_decode_position
>
<http://flac.sourceforge.net/api/group__flac__stream__decoder.html#ga35>
> returns just byte position and I can't simply translate it to sample
> position.
> _______________________________________________
> Flac-dev mailing list
> Flac-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/flac-dev
>
You'll need to save the most recent value of
frame->header.number.sample_number
from your write_callback function.