voice_get_pan(3alleg4)

✨ voice_get_pan β€” like, where IS that sound coming from?? ✨

okay bestie, so this is a page from the Allegro manual β€” the Allegro game programming library β€” and today we're checking out voice_get_pan(3alleg4). she's a lil function. she's an icon. she tells you which side your sound is leaning to. periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

int voice_get_pan(int voice);

like. that's it. that's the whole vibe. one include, one call, one very important number coming back at you. 🫢


πŸŽ€ DESCRIPTION πŸŽ€

So voice_get_pan returns the current pan position of a voice, and the range is:

  • 0 = all the way left πŸ‘ˆ
  • 255 = all the way right πŸ‘‰

and literally everything in between is just. somewhere in the middle. main character energy, centered, wherever you put her. ✨

You hand it a voice (that's the int, that's the argument, that's who we're asking about) and it hands you back the pan position as an int. no drama, no surprises, just facts. πŸ’–

ngl this is the read-only bestie of the duo β€” if you wanna change the pan instead of just peeking at it, that's a whole different function (see below, iykyk πŸ‘€).

πŸ¦‹ SEE ALSO πŸ¦‹

  • voice_set_pan(3alleg4) β€” the one who actually sets the pan. her sister. her counterpart. the other half of the glow-up. πŸ’œ

and that's the whole page, bestie!! πŸŽ€ this lil slice of the Allegro manual comes to you from Allegro version 4.4.3, so go forth and pan responsibly. slay, stay centered, and remember: 0 is left, 255 is right, and you are always the main character. πŸ’–βœ¨πŸ¦‹πŸŒΈπŸ’…πŸ‘‘