voice_check(3alleg4)
π voice_check β NAME β¨
ok so bestie, meet voice_check: the lil function that checks whether a voice is currently allocated. that's it. that's the whole job. she's a bouncer at the club door of your Allegro game programming library π
π¦ SYNOPSIS
#include <allegro.h>
SAMPLE *voice_check(int voice);
πΈ DESCRIPTION
okay so picture this: you've got a voice, right? and you need to know if it's currently allocated or not. that's literally it, that's the entire vibe. voice_check looks at a voice and tells you whether it's currently allocated. no cap, that's the whole function π
π RETURN VALUE
she hands you back a pointer to the SAMPLE that the voice is using π«Ά
but β and this is the important part, so listen β if the voice is inactive, you get NULL. and when we say inactive we mean:
- it's been deallocated, OR
- the
release_voice()function has been called and the sample has then finished playing
either way: NULL. no sample for you, bestie π
lowkey a vibe check for your voice. NULL = she's not home. pointer = she's there and she's using that sample. periodt.
π SEE ALSO
and that's the whole page, angel π this was brought to you by Allegro, version 4.4.3, dated with all the love of voice_check(3alleg4) β go forth and check those voices, you iconic main character π₯β¨
π¦ 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