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

Add backend-specific functions for checking if a file is in its format #6

Open
Clownacy opened this issue Feb 19, 2020 · 0 comments
Open

Comments

@Clownacy
Copy link
Owner

Right now clownaudio just uses the backend's 'Create' function to see if the loaded file is in that backend's format, but that's a whole lot of overhead.

Certain libraries (I think libVorbis is one of them) have specific functions for testing if the provided buffer contains valid data. Using those would be nice.

Backends whose libraries don't provide such a feature can still rely on the old 'just try opening the file' trick.

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