Fix ogg seek when tremor is used
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 16 Apr 2013 19:38:03 +0300
changeset 612e795460706d0
parent 611 595186c9c0ec
child 613 6fa075aa693e
Fix ogg seek when tremor is used

ov_time_seek takes milliseconds, not seconds.
music_ogg.c
     1.1 --- a/music_ogg.c	Wed Apr 17 01:27:39 2013 -0700
     1.2 +++ b/music_ogg.c	Tue Apr 16 19:38:03 2013 +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