al_set_voice_playing(3alleg5)
β¨ NAME β¨
al_set_voice_playing β the Allegro 5 API page that lets you flip a voice on or off, bestie π (this one lives in the 3alleg5 section of the Allegro reference manual, iykyk)
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
bool al_set_voice_playing(ALLEGRO_VOICE *voice, bool val)
π DESCRIPTION π
Okay so literally what this does is change whether a voice is playing or not. That's the whole vibe. You hand it a voice, you hand it a bool, and it does the thing. π
But β and this is the important part, no cap β this can only work if the voice has a non-streaming object attached to it. Like, a sample instance. That kind of thing. Streaming objects? Not it, bestie. π
On success, the voice's current sample position gets reset. So it's giving fresh-start energy. π¦
It returns true on success, and false on failure. That's it, that's the return value, periodt. β¨
π₯ SEE ALSO π₯
al_get_voice_playing(3alleg5)β the iconique counterpart that tells you what's up instead of changing it π
And that's the whole page, babe! This lil' rewrite came straight out of the Allegro reference manual β you can find al_set_voice_playing chillin' in the 3alleg5 section. Slay, go make some sounds. π§π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms