Fix ogg seek when tremor is used. (from 2.0 branch commit e795460706d0). SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sat, 06 Oct 2018 23:59:10 +0300
branchSDL-1.2
changeset 869318285c30cff
parent 868 989790afc9d9
child 870 329ecac70afb
Fix ogg seek when tremor is used. (from 2.0 branch commit e795460706d0).
music_ogg.c
     1.1 --- a/music_ogg.c	Sat Oct 06 23:55:10 2018 +0300
     1.2 +++ b/music_ogg.c	Sat Oct 06 23:59:10 2018 +0300
     1.3 @@ -225,7 +225,7 @@
     1.4  void OGG_jump_to_time(OGG_music *music, double time)
     1.5  {
     1.6  #ifdef OGG_USE_TREMOR
     1.7 -       vorbis.ov_time_seek( &music->vf, (ogg_int64_t)time );
     1.8 +       vorbis.ov_time_seek( &music->vf, (ogg_int64_t)(time * 1000.0) );
     1.9  #else
    1.10         vorbis.ov_time_seek( &music->vf, time );
    1.11  #endif