Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inside_ogg: store the absgp of the first page and tell people where the stream started #17

Open
est31 opened this issue May 31, 2017 · 0 comments

Comments

@est31
Copy link
Member

est31 commented May 31, 2017

There is a get_last_absgp function on the OggStreamReader. It returns the absgp of the last read page. That number can't be used for absolute measurements though, as the first audio page in an ogg/vorbis stream can start with any given absgp. To counter this, we need to remember the absgp of the first audio page in the stream, and use it as reference point. For increased accuracy, it would be best to take the actual begginning absgp, which is the absgp of the first audio page minus the sum of all sample counts of the ending packets in that page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant