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

How to decode an async stream? #279

Open
ababo opened this issue Apr 26, 2024 · 2 comments
Open

How to decode an async stream? #279

ababo opened this issue Apr 26, 2024 · 2 comments

Comments

@ababo
Copy link

ababo commented Apr 26, 2024

Since Symphonia lacks async support I would like to find a proper way to proactively feed with incoming chunks rather than via Read::read().

Indeed when I try to use a ring buffer that acts like a reader it's drained eventually making FormatReader return std::io::Error. After the ring buffer is topped up the format reader can be recovered, but at cost of skipping some data (an ogg page in my case) which is unacceptable.

I need a way to feed the format reader proactively with data or at least make its state fully recoverable.

@jBernavaPrah
Copy link

Hi @ababo

Did you find a way?

@ababo
Copy link
Author

ababo commented May 7, 2024

@jBernavaPrah No, I used an async packet decoder from ogg crate.

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

2 participants