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

al_detach_sample_instance - Allegro 5 API

#include <allegro5/allegro_audio.h>
bool al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
    

Detach the sample instance from whatever it’s attached to, if anything.

Returns true on success.

al_attach_sample_instance_to_mixer(3alleg5), al_attach_sample_instance_to_voice(3alleg5), al_get_sample_instance_attached(3alleg5)

Allegro reference manual