diff options
Diffstat (limited to 'engines/pink/sound.h')
-rw-r--r-- | engines/pink/sound.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/pink/sound.h b/engines/pink/sound.h index 74fa1b816b..fc3deba03b 100644 --- a/engines/pink/sound.h +++ b/engines/pink/sound.h @@ -28,6 +28,8 @@ #include "common/system.h" +#include "pink/constants.h" + namespace Common { class SafeSeekableSubReadStream; } @@ -46,7 +48,7 @@ public: void pause(bool paused) { g_system->getMixer()->pauseHandle(_handle, paused); } - uint64 getCurrentSample() { return (uint64)g_system->getMixer()->getElapsedTime(_handle).msecs() * 22050 / 1000; } + uint64 getCurrentSample() { return (uint64)g_system->getMixer()->getElapsedTime(_handle).msecs() * kSampleRate / 1000; } private: Audio::SoundHandle _handle; |