voice_get_volume(3alleg4)

✨ NAME ✨

voice_get_volume β€” bestie, this one hands you back the current volume of the voice πŸ’– it's part of the Allegro game programming library, and it's giving "just tell me how loud this thing is" energy.


🌸 SYNOPSIS 🌸

#include <allegro.h>

int voice_get_volume(int voice);

πŸŽ€ DESCRIPTION πŸŽ€

Okay so, you call it and it returns the current volume of the voice, in the range 0-255 β€” that's the whole vibe, no cap πŸ’…

Otherwise? It returns -1 if that volume simply cannot be determined 😭 and the reasons are very specific, so listen up:

  • the voice has finished, or
  • it got preempted by a different sound πŸ™ˆ
fr fr, if you're getting -1 it's not a you problem, it's just that the voice isn't around to be measured anymore. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie 🫢 this was Allegro version 4.4.3 spilling the tea on voice_get_volume(3alleg4) β€” stay iconic, stay loud, mwah πŸ’œβœ¨