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 Support for Distance Probes #94

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

Snoopy20111
Copy link
Contributor

Howdy!

I recently used your implementation of Wwise in Godot for a game jam, and noticed there was no support for Distance Probes, such that 3rd person audio was sometimes a little funky. The Wwise API docs made it look pretty straightforward, so I added it myself by essentially copying the existing code for Register Listener and Register Game Object.

From my personal testing this works as expected, but I'm not deeply familiar with the Wwise API or programming for production use, so I've probably missed some error checking somewhere and haven't run any of the presumably standard tests/analysis. Additionally, I couldn't figure out how to easily get the current Listener Game Object, so I wasn't able to make custom nodes that would act as distance probes themselves.

Please consider this pull request, or otherwise just copying and fixing my code for inclusion in the next release! :)

Super-duper basic implementation of Wwise Distance Probes. Requires the Game Objects used to have already been registered as a listener and an object respectively.
Added the methods to the Wwise GDExtension documentation.
@alessandrofama alessandrofama merged commit d163d4b into alessandrofama:main Apr 8, 2024
6 checks passed
@alessandrofama
Copy link
Owner

Thank you! (2+ thanks for updating the provided documentation. This should be visible in-editor in 4.3).

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