aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-23 09:54:33 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commitc75e048d2c1536aeb54bfabc73d2343fc5e410b5 (patch)
tree457cbaa15ddf8ebe70dd253998e98d2d38be628b
parent81f60be7c827c22e9ae0eab53089ef065a187898 (diff)
downloadscummvm-rg350-c75e048d2c1536aeb54bfabc73d2343fc5e410b5.tar.gz
scummvm-rg350-c75e048d2c1536aeb54bfabc73d2343fc5e410b5.tar.bz2
scummvm-rg350-c75e048d2c1536aeb54bfabc73d2343fc5e410b5.zip
PINK: changed way of getting sample
-rw-r--r--engines/pink/sound.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/pink/sound.h b/engines/pink/sound.h
index 28de99d3f7..b89f0e4abc 100644
--- a/engines/pink/sound.h
+++ b/engines/pink/sound.h
@@ -24,6 +24,7 @@
#define PINK_SOUND_H
#include "audio/mixer.h"
+#include "audio/timestamp.h"
#include "common/system.h"
@@ -45,7 +46,7 @@ public:
void pause(bool paused) { g_system->getMixer()->pauseHandle(_handle, paused); }
- uint64 getCurrentSample() { return (uint64)g_system->getMixer()->getSoundElapsedTime(_handle) * 22050 / 1000; }
+ uint32 getCurrentSample() { return g_system->getMixer()->getElapsedTime(_handle).totalNumberOfFrames(); }
private:
Audio::SoundHandle _handle;