diff options
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/sound.h | 2 |
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; |