diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2016-06-25 00:28:37 +0200 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2016-06-25 10:12:31 +0200 |
commit | 8ce8f1f5c7776b596c381feff72cf03ac24be402 (patch) | |
tree | f67cb1e4f907f1d8142cb12856a671e086d28e3a /src/track/trackmetadata.h | |
parent | b0debc788f0c7ae628e67cbba9f29973881b4703 (diff) |
Enhance precision of track duration from int to double
Diffstat (limited to 'src/track/trackmetadata.h')
-rw-r--r-- | src/track/trackmetadata.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/track/trackmetadata.h b/src/track/trackmetadata.h index d80cb0a6b1..58cef6bb85 100644 --- a/src/track/trackmetadata.h +++ b/src/track/trackmetadata.h @@ -122,10 +122,10 @@ public: } // #seconds - int getDuration() const { + double getDuration() const { return m_duration; } - void setDuration(int duration) { + void setDuration(double duration) { m_duration = duration; } @@ -189,10 +189,12 @@ private: Bpm m_bpm; ReplayGain m_replayGain; + // Floating-point fields (in alphabetical order) + double m_duration; // seconds + // Integer fields (in alphabetical order) int m_bitrate; // kbit/s int m_channels; - int m_duration; // seconds int m_sampleRate; // Hz }; |