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:
- Having Trouble with exit(1) - Stalling Program
- Screen is cleared and a new one appears Allegro5 in C?
- Game Crashing and I'm not sure why?
- Audio seems overly complicated :(
- al_destroy_sample crash
- Bitmap behind mappy map
- How to play video in allegro 5
- al_create_sample create double lengthen sample
- Just bored... ;)
- step calculation for sampled sin sample
Other recent discussions:
- Successful but silent audio playback
- Getting artefact when loading image
- How to get raw sample frequencies
- [A5] troubles with Ogg
- Segmentation fault error after calling a function
- [A5] Object Oriented Programming -Confusing.
- al_get_backbuffer does not work
- How would you fade audio
- SpeedHack 2014 is this weekend!
- al_install_audio fails everytime