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

Custom music from loose files #965

Open
AllyTally opened this issue Apr 1, 2023 · 2 comments · May be fixed by #1171
Open

Custom music from loose files #965

AllyTally opened this issue Apr 1, 2023 · 2 comments · May be fixed by #1171

Comments

@AllyTally
Copy link
Contributor

The ability to load loose music files was added, and VVVVVV now loads all 128 music headers if it can, meaning a lot more room for custom music. But it's not possible to load custom music from loose music files -- you're stuck with the 16 original filenames.

It would be good if there was a way to play custom loose music -- maybe along the lines of play(my_song) to play music/my_song.ogg, or some sort of filename-to-index map in the level file, so play(18) would always play a specific song and wouldn't shift around, etc.

@leo60228
Copy link
Contributor

leo60228 commented Sep 8, 2023

FWIW, the original motivation for supporting loose files was to reduce RAM usage enough to run on extremely low-end hardware (like the 3DS). This was done because SDL_mixer supported streaming music from files, but not regions within a file (at least not without rwops hacks). I'm not sure if this is still the case for FAudio.

@flibitijibibo
Copy link
Collaborator

FAudio can do it from any arbitrary memory, so VVV's song reader can do the decoding from the blob offset and stream into the source voice (assuming the migration didn't end up doing this already).

@NyakoFox NyakoFox linked a pull request Jun 4, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants