From 32ec5746bebcfbaecece143f2ee75644a1000d17 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 7 Jan 2010 15:12:20 +0000 Subject: Add Timestamp::totalNumberOfFrames() method, clarify some comments svn-id: r47120 --- sound/audiostream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sound/audiostream.cpp') diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 79e8308115..6a3b1d792d 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -183,8 +183,7 @@ inline int32 calculatePlayTime(int rate, int samples) { } uint32 calculateSampleOffset(const Timestamp &where, int rate) { - const Timestamp whereRate = where.convertToFramerate(rate); - return whereRate.secs() * rate + whereRate.numberOfFrames(); + return where.convertToFramerate(rate).totalNumberOfFrames(); } /** -- cgit v1.2.3