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:
- 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
- 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
Other recent discussions:
- [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
- Possible inconsistency in the behavior of al_set_sample_instance_playing() ?
- Allegro 5 Audio Playing Vorbis errors.
- Sample ID?
- [A5] Repeating audio samples
- [A5] Beep sound function.