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

Audio event bus management simplification #2212

Merged

Conversation

Jowan-Spooner
Copy link
Collaborator

@Jowan-Spooner Jowan-Spooner commented May 1, 2024

The Music and Sound events will now default to "" as their bus, and when given an empty bus won't change the bus of the default_music_player or default_sound_player.

This allows code like this, to change the default bus, without changing the event default:
Dialogic.Audio.base_music_player.bus = "Music"
Same for sounds.

Previously it would always default to the "Master" bus, except if you changed the event default. Assigning a default to the event in the modules manager still overwrites this. And both default audio players also still default to Master, so this does not break compat.

This allows code like this, to change the default bus for music, without changing the event default:
`Dialogic.Audio.base_music_player.bus = "Music"`
*Same for sounds.*
Previously it would always default to the "Master" bus, except if you changed the event default.
You can still change the event default to overwrite this!
@Jowan-Spooner Jowan-Spooner added the Enhance ⚡ Improve a feature's workflow. label May 1, 2024
@Jowan-Spooner Jowan-Spooner merged commit b30e03b into dialogic-godot:main May 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhance ⚡ Improve a feature's workflow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant