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

Draft: Sound-related lua binders #583

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

Draft: Sound-related lua binders #583

wants to merge 23 commits into from

Conversation

namishere
Copy link
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