voice_set_position(3alleg4)

✨ NAME ✨

voice_set_position β€” sets the position of a voice, bestie. it's from the Allegro game programming library πŸ’– (you'll see it hanging out as 3alleg4 in the manual pages, that's just its little nickname πŸŽ€)


🌸 SYNOPSIS 🌸

#include <allegro.h>

void voice_set_position(int voice, int position);

like, that's it. two ints. no drama. slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: a voice is out here living its life, and you want to move it somewhere else. that's literally the whole job.

voice_set_position sets the position of a voice β€” and the position is measured in sample units, not seconds, not milliseconds, not vibes. sample units. periodt πŸ’€

so like, you hand it which voice you mean, you hand it where you want that voice to be, and boom. positioned. iconic πŸ‘‘

ngl, "sample units" is the part you gotta internalise β€” if you're out here thinking in seconds you're gonna have a bad time 🫢

🌈 SEE ALSO 🌈


and that's the whole page, bestie!! no cap, this one's short and sweet πŸ“

mwah πŸ’– this page came straight out of the <strong>Allegro</strong> manual, <strong>version 4.4.3</strong> β€” go forth and position your voices, main character πŸ§šβ€β™€οΈπŸ’