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 π¦
voice_set_volume(3alleg4)β the other half of the duo, go set that volume too π
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 πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms