mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
PINK: changed way of getting sample
This commit is contained in:
parent
81f60be7c8
commit
c75e048d2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user