Skip to main content

Topic: Get x seconds (Read 2651 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
Get x seconds
hi,

I'm currently wrting a small app (C++) and I want to load a vorbis file.
everything works but now I want to have x amount of seconds read in stade of x amount of data.
it's probably a single simple line (using the bitrate ?) to convert the time wanted to data wanted but I can't figure it out...
any help ?

cheers

  • Garf
  • [*][*][*][*][*]
  • Developer (Donating)
Get x seconds
Reply #1
Vorbis bitrate is variable, so you cannot use it to convert time to size. You need to parse at least the Ogg layer and interpret the timestamps.