IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Get x seconds
mindbreaker
post Mar 31 2011, 16:58
Post #1





Group: Members
Posts: 1
Joined: 31-March 11
Member No.: 89451



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
Go to the top of the page
+Quote Post
Garf
post Mar 31 2011, 17:55
Post #2


Server Admin


Group: Admin
Posts: 4886
Joined: 24-September 01
Member No.: 13



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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2014 - 08:38