mmakrzem at March 29th, 2009 15:27 — #1
I want to return my file pointer for my Ogg Vorbis file back to the start so that when I call ov_read it will return to me the beginning of the sound file.
How can I control the location of the file pointer?
martinsm at March 29th, 2009 15:47 — #2
Read The Fine Manual
Functions you seek is under Seeking section - ov_XXX_seek().
mmakrzem at March 29th, 2009 15:49 — #3
my Ogg file is not seekable therefore I cannot use the seek functions.
Is there another way that I can "rewind" my file back to the start?
thenut at March 29th, 2009 20:00 — #4
Only thing I could think of is closing and reopening it. Ogg has some internal states and if you mess with the file pointer you will likely break something. Being open source of course, you could go in their code and iron out a solution that would be faster.
mmakrzem at March 29th, 2009 20:56 — #5
That did the trick. Thanks TheNut.
If you'd like to try out my game, you can download it here: