From 78c70cf5bb4abf69a6657840c450a3501eaa86a1 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Thu, 21 May 2015 18:49:40 +0900 Subject: [PATCH] MOD: AudioProperties improvements Add lengthInSeconds(), lengthInMilliseconds() properties. (always return 0) --- taglib/it/itproperties.cpp | 10 ++++++++++ taglib/it/itproperties.h | 10 ++++++---- taglib/mod/modproperties.cpp | 10 ++++++++++ taglib/mod/modproperties.h | 14 ++++++++------ taglib/s3m/s3mproperties.cpp | 10 ++++++++++ taglib/s3m/s3mproperties.h | 10 ++++++---- taglib/xm/xmproperties.cpp | 10 ++++++++++ taglib/xm/xmproperties.h | 10 ++++++---- 8 files changed, 66 insertions(+), 18 deletions(-) diff --git a/taglib/it/itproperties.cpp b/taglib/it/itproperties.cpp index 7a328fb9..0359533d 100644 --- a/taglib/it/itproperties.cpp +++ b/taglib/it/itproperties.cpp @@ -79,6 +79,16 @@ int IT::Properties::length() const return 0; } +int IT::Properties::lengthInSeconds() const +{ + return 0; +} + +int IT::Properties::lengthInMilliseconds() const +{ + return 0; +} + int IT::Properties::bitrate() const { return 0; diff --git a/taglib/it/itproperties.h b/taglib/it/itproperties.h index da2a7c4f..060ad358 100644 --- a/taglib/it/itproperties.h +++ b/taglib/it/itproperties.h @@ -51,10 +51,12 @@ namespace TagLib { Properties(AudioProperties::ReadStyle propertiesStyle); virtual ~Properties(); - int length() const; - int bitrate() const; - int sampleRate() const; - int channels() const; + int length() const; + int lengthInSeconds() const; + int lengthInMilliseconds() const; + int bitrate() const; + int sampleRate() const; + int channels() const; ushort lengthInPatterns() const; bool stereo() const; diff --git a/taglib/mod/modproperties.cpp b/taglib/mod/modproperties.cpp index 4d3c3548..db5a98e2 100644 --- a/taglib/mod/modproperties.cpp +++ b/taglib/mod/modproperties.cpp @@ -55,6 +55,16 @@ int Mod::Properties::length() const return 0; } +int Mod::Properties::lengthInSeconds() const +{ + return 0; +} + +int Mod::Properties::lengthInMilliseconds() const +{ + return 0; +} + int Mod::Properties::bitrate() const { return 0; diff --git a/taglib/mod/modproperties.h b/taglib/mod/modproperties.h index d50353a4..ac4bf7f3 100644 --- a/taglib/mod/modproperties.h +++ b/taglib/mod/modproperties.h @@ -35,12 +35,14 @@ namespace TagLib { Properties(AudioProperties::ReadStyle propertiesStyle); virtual ~Properties(); - int length() const; - int bitrate() const; - int sampleRate() const; - int channels() const; - - uint instrumentCount() const; + int length() const; + int lengthInSeconds() const; + int lengthInMilliseconds() const; + int bitrate() const; + int sampleRate() const; + int channels() const; + + uint instrumentCount() const; uchar lengthInPatterns() const; void setChannels(int channels); diff --git a/taglib/s3m/s3mproperties.cpp b/taglib/s3m/s3mproperties.cpp index a1a010a3..6f93eec3 100644 --- a/taglib/s3m/s3mproperties.cpp +++ b/taglib/s3m/s3mproperties.cpp @@ -73,6 +73,16 @@ int S3M::Properties::length() const return 0; } +int S3M::Properties::lengthInSeconds() const +{ + return 0; +} + +int S3M::Properties::lengthInMilliseconds() const +{ + return 0; +} + int S3M::Properties::bitrate() const { return 0; diff --git a/taglib/s3m/s3mproperties.h b/taglib/s3m/s3mproperties.h index 6e9f1d29..4499627f 100644 --- a/taglib/s3m/s3mproperties.h +++ b/taglib/s3m/s3mproperties.h @@ -44,10 +44,12 @@ namespace TagLib { Properties(AudioProperties::ReadStyle propertiesStyle); virtual ~Properties(); - int length() const; - int bitrate() const; - int sampleRate() const; - int channels() const; + int length() const; + int lengthInSeconds() const; + int lengthInMilliseconds() const; + int bitrate() const; + int sampleRate() const; + int channels() const; ushort lengthInPatterns() const; bool stereo() const; diff --git a/taglib/xm/xmproperties.cpp b/taglib/xm/xmproperties.cpp index 45da02bd..3d4a3c38 100644 --- a/taglib/xm/xmproperties.cpp +++ b/taglib/xm/xmproperties.cpp @@ -69,6 +69,16 @@ int XM::Properties::length() const return 0; } +int XM::Properties::lengthInSeconds() const +{ + return 0; +} + +int XM::Properties::lengthInMilliseconds() const +{ + return 0; +} + int XM::Properties::bitrate() const { return 0; diff --git a/taglib/xm/xmproperties.h b/taglib/xm/xmproperties.h index e87cb7f8..f929982b 100644 --- a/taglib/xm/xmproperties.h +++ b/taglib/xm/xmproperties.h @@ -39,10 +39,12 @@ namespace TagLib { Properties(AudioProperties::ReadStyle propertiesStyle); virtual ~Properties(); - int length() const; - int bitrate() const; - int sampleRate() const; - int channels() const; + int length() const; + int lengthInSeconds() const; + int lengthInMilliseconds() const; + int bitrate() const; + int sampleRate() const; + int channels() const; ushort lengthInPatterns() const; ushort version() const; -- 2.40.0