aboutsummaryrefslogtreecommitdiff
path: root/sound/mp3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mp3.cpp')
-rw-r--r--sound/mp3.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp
index 72d4652789..332fe20d59 100644
--- a/sound/mp3.cpp
+++ b/sound/mp3.cpp
@@ -100,6 +100,8 @@ public:
}
bool seek(const Timestamp &where);
+ // TODO: Maybe we can have a more precise implementation of this
+ Timestamp getLength() const { return Timestamp(_totalPlayTime, getRate()); }
void setNumLoops(uint numLoops) {
_numLoops = numLoops;