Allegro 5 api
#include <allegro5/allegro_audio.h> void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
Detaches the sample stream from anything it may be attached to and frees it (the sample data is not freed!).
al_create_sample_instance(3alleg5)