SlashCo Wiki

SlashCo.AudioSystem.EnsureValidVolume

 number SlashCo.AudioSystem.EnsureValidVolume( number volume )

Description

Checks if the input value is a NaN value and if so it will return 0

This is used internally - although you're able to use it you probably shouldn't.
This function acts more as an internal safeguard in case our math somehow explodes.

Arguments

1number volume

Volume to check

Returns

1number volume

Volume that is never NaN