Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Locating every each frame (Read 2105 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Locating every each frame

I just have a question on how to go through every frame one by one. Is this the correct method?:

first locate the first frame.
read the frame and find the frame length like this:

layer1:
(12 * bitrate / samplerate + paddingbyte) * 4
layer2/layer3:
144 * bitrate / samplerate + paddingbyte

seek to current file position + frame length and loop this (except finding the header of course) until end of file has been found.

is this the correct approach?

thankyou.
Redeemer
67100334