reallocate_voice(3)
π 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms