From 0b46e2db06ec1bbfc3aee819787386ace9dad66c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 7 Mar 2009 22:43:26 +0000 Subject: improved seeking accuracy git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@827 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/flac/decoder_flac.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Input/flac/decoder_flac.h') diff --git a/src/plugins/Input/flac/decoder_flac.h b/src/plugins/Input/flac/decoder_flac.h index f2e002487..e6036232e 100644 --- a/src/plugins/Input/flac/decoder_flac.h +++ b/src/plugins/Input/flac/decoder_flac.h @@ -38,8 +38,8 @@ struct flac_data int bitrate; int abort; /* abort playing (due to an error) */ - unsigned length; - unsigned total_samples; + qint64 length; + qint64 total_samples; FLAC__byte sample_buffer[SAMPLE_BUFFER_SIZE]; unsigned sample_buffer_fill; @@ -64,7 +64,7 @@ public: // Standard Decoder API bool initialize(); - qint64 lengthInSeconds(); + qint64 totalTime(); void seek(qint64); void stop(); @@ -98,7 +98,7 @@ private: long len, freq, bitrate; int chan; unsigned long output_size; - double totalTime, seekTime; + double m_totalTime, seekTime; QString m_path; qint64 m_offset; qint64 m_length; -- cgit v1.2.3-13-gbd6f