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

skip frames up to actual seek timestamp in symphonia decoder #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edwloef
Copy link

@edwloef edwloef commented Sep 28, 2024

This seems, to me, to fix #43.

What I'm doing is saving the difference between the requested and actual seek timestamps, and skipping decoded packets until the requested seek timestamp is within the decoded packet. I then push the index inside the decoded buffer forwards to account for the offset of the requested seek timestamp within the packet.

In my testing this gets rid of the audio artifacts that result from seeking in mp3 files.

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

Successfully merging this pull request may close these issues.

The Symphonia decoder ignores the actual seek position, resulting in audible glitches in file playback
1 participant