al_destroy...e_instance(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

okay bestie, welcome to al_destroy...e_instance(3) from the Library Functions Manual πŸ’– this page is tiny but she still has main character energy.

πŸŽ€ NAME

al_destroy_sample_instance β€” Allegro 5 API

✨ SYNOPSIS

include this header, then call it like this, fr fr:

#include <allegro5/allegro_audio.h>

void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)

πŸ’… DESCRIPTION

al_destroy_sample_instance does exactly what it says on the tin: it detaches the sample instance from anything it may be attached to and then frees it 🫢

But listen, bestie β€” the sample data, i.e. its ALLEGRO_SAMPLE, is not freed! Like, the instance goes bye-bye, but the ALLEGRO_SAMPLE itself is not getting deleted by this. No cap. πŸ’€

Warning bestie: this detaches and frees the sample instance, but it does not free the ALLEGRO_SAMPLE sample data. Periodt.

πŸ‘€ SEE ALSO


Bye bestie 🫢 this page is from the Allegro reference manual, for al_destroy...e_instance(3). The footer didn’t list a date, so I’m not making one up β€” slay responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms