al_destroy_voice
void al_destroy_voice(ALLEGRO_VOICE *voice)
Introduced in 5.0.0
Destroys the voice and deallocates it from the digital driver. Does nothing if the voice is NULL.
See also: al_create_voice
Examples: ex_acodec, ex_acodec_multi, ex_kcm_direct, ex_mixer_chain, ex_mixer_pp, ex_stream_file
Most helpful discussions:
- Audio waveform with unexpected frequency behavior
- Audio seems overly complicated :(
- Delay when playing a sound effect using "al_play_sample"
- Possible inconsistency in the behavior of al_set_sample_instance_playing() ?
- Possible thread deadlock/hang in al_detach_voice() ?
- [A5] Repeating audio samples
- (A5) random crash on al_detach_voice()