diff options
Diffstat (limited to 'src/plugins/Input/flac')
| -rw-r--r-- | src/plugins/Input/flac/decoder_flac.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/Input/flac/decoder_flac.h | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/plugins/Input/flac/decoder_flac.cpp b/src/plugins/Input/flac/decoder_flac.cpp index 96868de6a..43e0a7972 100644 --- a/src/plugins/Input/flac/decoder_flac.cpp +++ b/src/plugins/Input/flac/decoder_flac.cpp @@ -436,14 +436,14 @@ bool DecoderFLAC::initialize() return true; } -qint64 DecoderFLAC::totalTime() +qint64 DecoderFLAC::totalTime() const { if(m_parser) return m_length; return data()->length; } -int DecoderFLAC::bitrate() +int DecoderFLAC::bitrate() const { return data()->bitrate; } diff --git a/src/plugins/Input/flac/decoder_flac.h b/src/plugins/Input/flac/decoder_flac.h index c69cba210..5502001dc 100644 --- a/src/plugins/Input/flac/decoder_flac.h +++ b/src/plugins/Input/flac/decoder_flac.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2014 by Ilya Kotov * + * Copyright (C) 2006-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -65,8 +65,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; @@ -77,6 +77,11 @@ public: return m_data; } + const struct flac_data *data() const + { + return m_data; + } + private: // helper functions |
