Allegro 5 api
#include <allegro5/allegro_audio.h> unsigned int al_get_sample_instance_length(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the length of the sample instance in sample values.
al_set_sample_instance_length(3alleg5), al_get_sample_instance_time(3alleg5)