From ce3919e6cb576b8d57130b0e65114cb98b376f05 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Tue, 16 Apr 2013 19:38:03 +0300 Subject: [PATCH] Fix ogg seek when tremor is used ov_time_seek takes milliseconds, not seconds. --- music_ogg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_ogg.c b/music_ogg.c index 5dcc3e2c..7e9b8dc1 100644 --- a/music_ogg.c +++ b/music_ogg.c @@ -225,7 +225,7 @@ void OGG_delete(OGG_music *music) void OGG_jump_to_time(OGG_music *music, double time) { #ifdef OGG_USE_TREMOR - vorbis.ov_time_seek( &music->vf, (ogg_int64_t)time ); + vorbis.ov_time_seek( &music->vf, (ogg_int64_t)(time * 1000.0) ); #else vorbis.ov_time_seek( &music->vf, time ); #endif