al_set_voice_position(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– al_set_voice_position πŸ’–

okay bestie, so this one lives in the Allegro 5 API (that's the 3alleg5 manual, iykyk) and it's literally the little function that moves your voice around. let's get into it ✨


✨ NAME ✨

al_set_voice_position β€” Allegro 5 API πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

bool al_set_voice_position(ALLEGRO_VOICE *voice, unsigned int val)

like yes, that's the whole thing. two args, one bool coming back at you. iconic πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so the vibe is: you're setting the voice position. that's it, that's the job.

but β€” and this is the important part, no cap β€” this can only work if the voice has a non-streaming object attached to it. think like a sample instance, that kind of thing. no attached non-streaming object? then babe, it's just not gonna happen 😭

and the return value? she's giving:

  • true on success βœ… (slay)
  • false on failure πŸ’€ (not slay)
fr fr, don't forget to actually check that return value. the function will tell you if it worked, so let her speak.

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! 🌈 this was pulled straight from the Allegro reference manual for al_set_voice_position(3alleg5) β€” go forth and position those voices, mwah πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from