You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Audio is like the Texture class, points to a binary resource, in this case a wav file
Sound is a script utility class and it is there as a wrapper around the PLAY command with all its horrible flags.
Usually I have to use them both in the same place and it looks super confusing, you can't really tell just by the variables what the given content of the variable is or what is it used for:
Technically the Sound class only cares about the filename of the Audio, so the Sound class doesn't really need an alternative name that is very close to the Audio class.
Could be renamed to AudioScript or SoundScript.
Similar thing needs to be done with the other script class too: Glow -> GlowScript?
The text was updated successfully, but these errors were encountered:
Audio is like the Texture class, points to a binary resource, in this case a wav file
Sound is a script utility class and it is there as a wrapper around the
PLAY
command with all its horrible flags.Usually I have to use them both in the same place and it looks super confusing, you can't really tell just by the variables what the given content of the variable is or what is it used for:
Technically the Sound class only cares about the filename of the Audio, so the Sound class doesn't really need an alternative name that is very close to the Audio class.
Could be renamed to AudioScript or SoundScript.
Similar thing needs to be done with the other script class too: Glow -> GlowScript?
The text was updated successfully, but these errors were encountered: