Skip to content

Commit

Permalink
Fix ogg seek when tremor is used
Browse files Browse the repository at this point in the history
ov_time_seek takes milliseconds, not seconds.
  • Loading branch information
notaz committed Apr 16, 2013
1 parent a6c52d4 commit ce3919e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_ogg.c
Expand Up @@ -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
Expand Down

0 comments on commit ce3919e

Please sign in to comment.