al_destroy_sample

void al_destroy_sample(ALLEGRO_SAMPLE *spl)
Introduced in 5.0.0

Free the sample data structure. If it was created with the free_buf parameter set to true, then the buffer will be freed with al_free.

This function will stop any sample instances which may be playing the buffer referenced by the ALLEGRO_SAMPLE.

See also: al_destroy_sample_instance, al_stop_sample, al_stop_samples

Examples: ex_acodec, ex_acodec_multi, ex_audio_props, ex_kcm_direct, ex_mixer_chain


Most helpful discussions:

Other recent discussions: