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

Add check preventing restarting the same audio resource. #2002

Conversation

CakeVR
Copy link
Collaborator

@CakeVR CakeVR commented Jan 8, 2024

Implements #2001 and fixes the background music event when its restarting the identical playing audio resource.

@Jowan-Spooner
Copy link
Collaborator

Seems a bit unnecessary to do the check in the event, couldn't we simply check it in the subsystem?

@CakeVR
Copy link
Collaborator Author

CakeVR commented Jan 8, 2024

Seems a bit unnecessary to do the check in the event, couldn't we simply check it in the subsystem?

Personally, I think game logic should happen in events and the subsystem for audio executes the request.
If someone would like to restart the same audio, they can still make a new event, however, if the subsystem refuses to behave like that, the feature would be impossible; they need to handle their own audio player.

@Jowan-Spooner Jowan-Spooner merged commit 918bf06 into dialogic-godot:main Jan 9, 2024
2 checks passed
Invertex pushed a commit to Invertex/dialogic that referenced this pull request Jan 26, 2024
…dot#2002)

* Add check preventing restarting the same audio resource.

* Fix docs.

* Move resource check to the Audio subsystem.
@CakeVR CakeVR deleted the prevent-restarting-same-background-resource branch February 28, 2024 21:04
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.

None yet

2 participants