• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Why is the audio functionality so jumbly?

andev

Member
We have audio_sound_set_track_position. But then half the other set functions don't contain 'set' like audio_sound_gain.

Unless it's a getter in which case it's audio_sound_get_gain.

audio_sound_play? Nope, it's audio_play_sound.

audio_is_playing returns true even if a sound is paused.

audio_exists will cause a crash if the sound never existed.

and audio_is_paused will return true even if the sound has simply just ended and was not explicitly paused. Just kidding.

But it's not unlikely given the above quirks. Why is it like this?
 

TsukaYuriko

☄️
Forum Staff
Moderator
I agree that the naming of a few functions and default variables does seem a bit off (*cough* game_save_id), however I'd like to add that you are free to rename them to anything you'd like (that doesn't already exist) via macros or wrapper functions.
 
Top