diff options
Diffstat (limited to 'src/plugins/Input/wavpack')
| -rw-r--r-- | src/plugins/Input/wavpack/decoder_wavpack.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/Input/wavpack/decoder_wavpack.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/Input/wavpack/decoder_wavpack.cpp b/src/plugins/Input/wavpack/decoder_wavpack.cpp index f4a37d3d3..9a6a18c1f 100644 --- a/src/plugins/Input/wavpack/decoder_wavpack.cpp +++ b/src/plugins/Input/wavpack/decoder_wavpack.cpp @@ -155,14 +155,14 @@ bool DecoderWavPack::initialize() return true; } -int DecoderWavPack::bitrate() +int DecoderWavPack::bitrate() const { if(m_context) return int(WavpackGetInstantBitrate(m_context)/1000); return 0; } -qint64 DecoderWavPack::totalTime() +qint64 DecoderWavPack::totalTime() const { if(m_parser) return m_length; diff --git a/src/plugins/Input/wavpack/decoder_wavpack.h b/src/plugins/Input/wavpack/decoder_wavpack.h index 981f1dff4..91b2c6d15 100644 --- a/src/plugins/Input/wavpack/decoder_wavpack.h +++ b/src/plugins/Input/wavpack/decoder_wavpack.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2015 by Ilya Kotov * + * Copyright (C) 2008-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -36,8 +36,8 @@ public: // Standard Decoder API bool initialize(); - qint64 totalTime(); - int bitrate(); + qint64 totalTime() const; + int bitrate() const; qint64 read(unsigned char *data, qint64 maxSize); void seek(qint64 time); const QString nextURL() const; |
