Skip to content

Draft: Sound-related lua binders#583

Draft
namishere wants to merge 23 commits intomainfrom
sound-stuff
Draft

Draft: Sound-related lua binders#583
namishere wants to merge 23 commits intomainfrom
sound-stuff

Conversation

@namishere
Copy link
Copy Markdown
Collaborator

This adds:
SoundStream: holds a (currently disabled in lua) SoundActor and info about volume, its target volume, fade rate, if it's playing, and a reference to its owner SoundStreamSet
SoundStreamSet: holds all music-related streams (one base, six more for the layers), info about the global music volume/target volume/fade rate/playing, as well as a bitset of currently active layers.
MusicEntry: holds info from music.xml (id, filepaths, layer mode, layer fade rate, multiplier, looping) and a list of MusicLayer.
MusicLayer: holds filepaths and a volume multipler.

Unfortunately, I have so far been unable to make SoundActor work. Calls made with the current binders will either do nothing, do the wrong thing, or crash.

@namishere namishere self-assigned this Nov 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants