diff options
author | Max Horn | 2010-01-06 15:56:04 +0000 |
---|---|---|
committer | Max Horn | 2010-01-06 15:56:04 +0000 |
commit | dd76e2bda0e33ad78c8c7dd8c998c6e51c8a04ca (patch) | |
tree | b88749e1df71ca22d4ce7b66a2d64a296fbb2cd7 /sound/timestamp.cpp | |
parent | 297a95557946555e5cc51279abafc0dc362af5f7 (diff) | |
download | scummvm-rg350-dd76e2bda0e33ad78c8c7dd8c998c6e51c8a04ca.tar.gz scummvm-rg350-dd76e2bda0e33ad78c8c7dd8c998c6e51c8a04ca.tar.bz2 scummvm-rg350-dd76e2bda0e33ad78c8c7dd8c998c6e51c8a04ca.zip |
Rename some Timestamp methods: getNumberOfFrames -> numberOfFrames and getFramerate -> framerate
svn-id: r47083
Diffstat (limited to 'sound/timestamp.cpp')
-rw-r--r-- | sound/timestamp.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/timestamp.cpp b/sound/timestamp.cpp index 9d95fbe556..f6ac56bfad 100644 --- a/sound/timestamp.cpp +++ b/sound/timestamp.cpp @@ -36,12 +36,12 @@ static uint gcd(uint a, uint b) { return b; } -Timestamp::Timestamp(uint32 ms, int framerate) { - assert(framerate > 0); +Timestamp::Timestamp(uint32 ms, int fr) { + assert(fr > 0); _secs = ms / 1000; - _framerateFactor = 1000 / gcd(1000, framerate); - _framerate = framerate * _framerateFactor; + _framerateFactor = 1000 / gcd(1000, fr); + _framerate = fr * _framerateFactor; _numberOfFrames = (ms % 1000) * _framerate / 1000; } @@ -50,7 +50,7 @@ Timestamp::Timestamp(uint32 ms, int framerate) { Timestamp Timestamp::convertToFramerate(int newFramerate) const { Timestamp ts(*this); - if (ts.getFramerate() != newFramerate) { + if (ts.framerate() != newFramerate) { ts._framerateFactor = 1000 / gcd(1000, newFramerate); ts._framerate = newFramerate * ts._framerateFactor; |