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

Load wave from bytes #33

Closed
majorcob opened this issue May 3, 2023 · 3 comments
Closed

Load wave from bytes #33

majorcob opened this issue May 3, 2023 · 3 comments

Comments

@majorcob
Copy link

majorcob commented May 3, 2023

Could functions be added to load a Wave32/Wave64 from a slice of bytes? In my application I'd be receiving ogg data from an external source (no filesystem).

From what I can tell Symphonia is able to create a MediaSource from a Cursor, so hopefully most of the implementation can be shared with the existing load/load_track functions.

@SamiPerttu
Copy link
Owner

Sure thing! I'll update this issue when it's ready.

@SamiPerttu
Copy link
Owner

It's ready now! I ended up with a static lifetime for the slice, let me know if that's a problem.

@majorcob
Copy link
Author

majorcob commented May 7, 2023

Fantastic, thank you for the quick turnaround!

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