diff options
Diffstat (limited to 'engines/pink/sound.cpp')
-rw-r--r-- | engines/pink/sound.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/pink/sound.cpp b/engines/pink/sound.cpp index cf62f03c93..5312c965c9 100644 --- a/engines/pink/sound.cpp +++ b/engines/pink/sound.cpp @@ -84,4 +84,8 @@ void Sound::setBalance(int8 balance) { _mixer->setChannelBalance(_handle, balance); } +uint32 Sound::getCurrentSample() { + return _mixer->getSoundElapsedTime(_handle) * 22050 / 1000; +} + } // End of namespace Pink
\ No newline at end of file |