al_detach_voice(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… al_detach_voice

okay so bestie, welcome to the Allegro 5 API ✨ β€” this lil page lives in the al_detach_voice(3alleg5) manual, and it's about the moment you gotta say "okay we're done here" to a voice πŸŽ€


🌸 SYNOPSIS

#include <allegro5/allegro_audio.h>

void al_detach_voice(ALLEGRO_VOICE *voice)

like yes, that's the whole signature. short, sweet, iconic. πŸ‘‘


πŸ’– DESCRIPTION

So basically: this function detaches whatever was attached to that voice of yours. 🫢

And "whatever" could be any one of these three cuties:

  • a mixer 🎚️
  • a sample instance πŸ“
  • an audio stream 🌊

Whichever one is currently riding along with the voice β€” al_detach_voice unhooks it. no cap. ✨

ngl it's giving "we need to talk" but for audio objects, and honestly? the voice is fine. it's thriving. main character energy either way. πŸ’…

πŸ¦‹ SEE ALSO

the whole friend group fr fr β€” go read these next:


okay that's the whole page!! stay hydrated, keep your voices attached (until you don't πŸ’€), and remember: detaching is self-care πŸŒˆπŸ’œ

this has been the Allegro reference manual version of al_detach_voice(3alleg5) β€” mwah, go slay πŸŽ€βœ¨

πŸ“¦ where this page comes from