From 80b220a3a68b4f9c4d21fa416ff220e4262cde82 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Nov 2009 15:09:24 +0100 Subject: decoder/flac: keep track of current frame number We need this for more exact end-of-subsong detection for CUE files. --- src/decoder/_flac_common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/decoder/_flac_common.h') diff --git a/src/decoder/_flac_common.h b/src/decoder/_flac_common.h index e0ddc6027..f4cf6e184 100644 --- a/src/decoder/_flac_common.h +++ b/src/decoder/_flac_common.h @@ -148,6 +148,11 @@ typedef size_t flac_read_status_size_t; struct flac_data { struct pcm_buffer buffer; + /** + * The number of the next frame which is going to be decoded. + */ + FLAC__uint64 next_frame; + float time; unsigned int bit_rate; struct audio_format audio_format; -- cgit v1.2.3