al_destroy_audio_stream(3alleg5)

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

πŸ’– NAME πŸ’–

al_destroy_audio_stream β€” the Allegro 5 API's official "bye bestie" button for audio streams πŸŽ€

Part of the Allegro 5 reference manual, and yeah, it lives in section 3alleg5, iykyk.


✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

void al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so you've got an audio stream, and now it's gotta go. This function destroys an audio stream β€” but only the kind you made with al_create_audio_stream(3alleg5) or al_load_audio_stream(3alleg5). Those are its people, fr fr. πŸ’…

Note: If the stream is still attached to a mixer or a voice, al_detach_audio_stream(3alleg5) gets called on it automatically first. Like, the function handles the breakup logistics for you before it ghosts. No cap, you don't have to detach it yourself. 🫢

🌸 SEE ALSO 🌸


That's the whole vibe, bestie πŸ’œ β€” written up in the Allegro reference manual, page al_destroy_audio_stream(3alleg5). Go forth and free your memory, you absolute icon πŸ‘‘βœ¨

πŸ“¦ where this page comes from