diff options
author | aaronp64 <aaronp.code@gmail.com> | 2024-04-18 11:28:57 -0400 |
---|---|---|
committer | aaronp64 <aaronp.code@gmail.com> | 2024-04-18 11:28:57 -0400 |
commit | 58931c073dd26b52dc2d5182166a145cb221ad20 (patch) | |
tree | e48342323041b78c64995043bd563aaee0870a5d /methods.py | |
parent | 2efbc6bfb3b4f49a6bc75b3d367cfe81eeddbf3a (diff) | |
download | redot-engine-58931c073dd26b52dc2d5182166a145cb221ad20.tar.gz |
Check for NaN in set_volume_db functions
Added check in AudioStreamPlayer, AudioStreamPlayer2D, and AudioStreamPlayer3D set_volume_db functions to prevent setting volume to NaN, and give an error. Using NaN for volume and playing the AudioStreamPlayer could prevent all audio from playing, even from other AudioStreamPlayers.
Fixes #88133
Diffstat (limited to 'methods.py')
0 files changed, 0 insertions, 0 deletions