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: