aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/player/polled.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sfx/player/polled.cpp')
-rw-r--r--engines/sci/sfx/player/polled.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/sfx/player/polled.cpp b/engines/sci/sfx/player/polled.cpp
index 869f7c00b2..339b418a77 100644
--- a/engines/sci/sfx/player/polled.cpp
+++ b/engines/sci/sfx/player/polled.cpp
@@ -202,7 +202,7 @@ static int pp_init(ResourceManager *resmgr, int expected_latency) {
return SFX_OK;
}
-static int pp_add_iterator(song_iterator_t *it, GTimeVal start_time) {
+static int pp_add_iterator(song_iterator_t *it, uint32 start_time) {
song_iterator_t *old = play_it;
SIMSG_SEND(it, SIMSG_SET_PLAYMASK(seq->playmask));
@@ -218,9 +218,7 @@ static int pp_add_iterator(song_iterator_t *it, GTimeVal start_time) {
/* The check must happen HERE, and not at the beginning of the
function, to avoid a race condition with the mixer. */
if (old == NULL) {
- new_timestamp = sfx_new_timestamp(start_time.tv_sec,
- start_time.tv_usec,
- seq->pcm_conf.rate);
+ new_timestamp = sfx_new_timestamp(start_time, seq->pcm_conf.rate);
/* ASAP otherwise */
time_counter = 0;
new_song = 1;