DOKK / manpages / debian 11 / allegro5-doc / al_destroy_sample_instance.3alleg5.en
al_destroy_sample_instance(3alleg5) al_destroy_sample_instance(3alleg5)

al_destroy_sample_instance - Allegro 5 API

#include <allegro5/allegro_audio.h>
void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
    

Detaches the sample instance from anything it may be attached to and frees it (the sample data, i.e. its ALLEGRO_SAMPLE, is not freed!).

al_create_sample_instance(3alleg5)

Allegro reference manual