aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-23 16:24:54 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitab44490673e2b8c04ba1ebe0a0ceb476f413a5b9 (patch)
tree7b9c073483b49dd8c7e86c8d3ef7d86d6ca8e091 /engines/pink
parent50bed2d544644242cf271397ece12bc6a702a57f (diff)
downloadscummvm-rg350-ab44490673e2b8c04ba1ebe0a0ceb476f413a5b9.tar.gz
scummvm-rg350-ab44490673e2b8c04ba1ebe0a0ceb476f413a5b9.tar.bz2
scummvm-rg350-ab44490673e2b8c04ba1ebe0a0ceb476f413a5b9.zip
PINK: remove using Timestamp. It doesn't work as intended.
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/sound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pink/sound.h b/engines/pink/sound.h
index b89f0e4abc..74fa1b816b 100644
--- a/engines/pink/sound.h
+++ b/engines/pink/sound.h
@@ -46,7 +46,7 @@ public:
void pause(bool paused) { g_system->getMixer()->pauseHandle(_handle, paused); }
- uint32 getCurrentSample() { return g_system->getMixer()->getElapsedTime(_handle).totalNumberOfFrames(); }
+ uint64 getCurrentSample() { return (uint64)g_system->getMixer()->getElapsedTime(_handle).msecs() * 22050 / 1000; }
private:
Audio::SoundHandle _handle;