al_destroy...e_instance(3)
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