taglib: Remove virtual functions workaround in audioproperties

This commit is contained in:
Jonas Kvinge
2020-06-22 03:20:17 +02:00
parent ad4230f7fa
commit 2beb4b8c6f
2 changed files with 16 additions and 63 deletions

View File

@@ -67,14 +67,14 @@ class TAGLIB_EXPORT AudioProperties {
*
* \see lengthInMilliseconds()
*/
virtual int lengthInSeconds() const;
virtual int lengthInSeconds() const = 0;
/*!
* Returns the length of the file in milliseconds.
*
* \see lengthInSeconds()
*/
virtual int lengthInMilliseconds() const;
virtual int lengthInMilliseconds() const = 0;
/*!
* Returns the most appropriate bit rate for the file in kb/s. For constant bitrate formats this is simply the bitrate of the file.
@@ -92,6 +92,11 @@ class TAGLIB_EXPORT AudioProperties {
*/
virtual int channels() const = 0;
/*!
* Returns description of the audio file.
*/
virtual String toString() const;
protected:
/*!
* Construct an audio properties instance.