Add AudioProperties::lengthInSeconds() and lengthInMilliseconds() functions to emulate virtual abstract functions.

This commit is contained in:
Tsuda Kageyu
2015-08-01 02:23:18 +09:00
parent ce02910c6b
commit 03ec83ecca
2 changed files with 131 additions and 1 deletions

View File

@@ -69,6 +69,23 @@ namespace TagLib {
*/
virtual int length() const = 0;
/*!
* Returns the length of the file in seconds. The length is rounded down to
* the nearest whole second.
*
* \see lengthInMilliseconds()
*/
// BIC: make virtual
int lengthInSeconds() const;
/*!
* Returns the length of the file in milliseconds.
*
* \see lengthInSeconds()
*/
// BIC: make virtual
int lengthInMilliseconds() const;
/*!
* Returns the most appropriate bit rate for the file in kb/s. For constant
* bitrate formats this is simply the bitrate of the file. For variable