decoder/flac: keep track of current frame number

We need this for more exact end-of-subsong detection for CUE files.
This commit is contained in:
Max Kellermann
2009-11-11 15:09:24 +01:00
parent 5cc3c4f503
commit 80b220a3a6
4 changed files with 12 additions and 0 deletions

View File

@@ -328,6 +328,7 @@ oggflac_decode(struct decoder * mpd_decoder, struct input_stream *input_stream)
data.audio_format.sample_rate + 0.5;
if (OggFLAC__seekable_stream_decoder_seek_absolute
(decoder, seek_sample)) {
data.next_frame = seek_sample;
data.time = ((float)seek_sample) /
data.audio_format.sample_rate;
data.position = 0;