voice_check(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– NAME πŸ’–

okay so bestie, welcome to voice_check(3) from the Allegro manual! This is the Allegro game programming library page for voice_check, and its whole job is: checks whether a voice is currently allocated. iconic. πŸ’…

✨ SYNOPSIS ✨

#include <allegro.h>

SAMPLE *voice_check(int voice);

🌸 DESCRIPTION 🌸

So like, voice_check() is the vibe check for voices: it checks whether a voice is currently allocated. That's the entire tea. No extra secret sauce, no hidden side quests. 🫢

πŸŽ€ RETURN VALUE πŸŽ€

If the voice is active, you get back a pointer to the sample that the voice is using. If the voice is inactive, you get NULL. And "inactive" means it's been deallocated, or release_voice() was called and then the sample has finished playing. So yeah: no active voice, no sample pointer, just NULL. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Go read these next, bestie:


This page is from Allegro, version 4.4.3, and it's the voice_check(3) manual. No date on the footer, just version energy β€” mwah πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from