reallocate_voice(3)

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

πŸŽ€ NAME πŸŽ€

okay so bestie, this is the Allegro manual page for reallocate_voice(3), and it's literally the "switch the sample of an already-allocated voice" function. Allegro game programming library. no cap. πŸ’…

✨ SYNOPSIS ✨

#include <allegro.h>

void reallocate_voice(int voice, const SAMPLE *spl);

πŸ¦‹ DESCRIPTION πŸ¦‹

Switches an already-allocated voice to use a different sample. That's the vibe. Already-allocated is the key word, bestie β€” this voice is not new, it's just getting a sample glow-up.

Calling reallocate_voice(voice, sample) is equivalent to:

deallocate_voice(voice);
voice = allocate_voice(sample);

periodt. that's the whole equivalence. 🫢

🌸 SEE ALSO 🌸


mwah πŸ’‹ this was the Allegro manual page for reallocate_voice(3), from Allegro version 4.4.3. iykyk. πŸ’–

πŸ“¦ where this page comes from