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

IsValid methods for AudioEmitter and AudioListener #465

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Conversation

walbourn
Copy link
Member

@walbourn walbourn commented Aug 13, 2024

X3DAudio requires only 'real' values for floats, so values like INF or NAN will cause runtime faults. This PR adds an IsValid method that can be used on emitter and listener as part of a debug assert to check for these conditions.

This also provided a place to add additional validation of ranges for listener curves on emitters, as well as validate pChannelAzimuths usage.

@walbourn walbourn self-assigned this Aug 13, 2024
@walbourn walbourn added the audio Related to DirectX Tool Kit for Audio label Aug 13, 2024
@walbourn walbourn linked an issue Aug 13, 2024 that may be closed by this pull request
@walbourn
Copy link
Member Author

@walbourn walbourn merged commit 8350d44 into main Aug 13, 2024
73 checks passed
@walbourn walbourn deleted the audioisvalid branch August 13, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Related to DirectX Tool Kit for Audio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reproducible crash in the 3D Audio System
2 participants