-
Notifications
You must be signed in to change notification settings - Fork 7
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 support for BFSTM types of files #9
Comments
You're welcome! Unfortunately, I'm not currently able to support implementing this idea and I'll left this issue open for now. Thanks |
I might be able to try doing this after writing a BFSTM decoder in my own C++ BRSTM tools to have a good understanding of it but the JS module would have to support different header reading functions and file type detection |
@Extrasklep Nice, thanks! I would say that for a simple version we could just check using the file extension. Line 26 in 773ab8a
Right now in the index.html, it only accepts ".brstm". So we need to extend this too. For implementation, I suggest that this bfstm decoder be a separate "package" in the |
Yeah I guess it should be a separate file but it would also be stupid to completely separate it from the current package and copy the same audio decoding code with it when it could just use the same functions |
I see, yeah I think it's your call then on whether to make it a separate folder or not. I suggested that cause I would think that almost nothing is sharable across these two modules. If they do share lots of logic, then making it in a same folder is a good idea. Sorry for the OOP, my original goal of this project was to make it work without regarding what paradigm is the best, I just used one that I like 😅 Thanks :) |
The class constructor could do file type detection and then other format specific things could be moved into a separate format reading function or am I wrong? |
Yup looks good :) |
Hello Kenrick95,
I would like to suggest to add support for BFSTM.
This file is used in most Nintendo Switch and Wii U Games.
Thank you for the amazing work you have done making a web-based media player!
Kind regards,
MVDW.
The text was updated successfully, but these errors were encountered: