al_destroy_audio_stream

void al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
Introduced in 5.0.0

Destroy an audio stream which was created with al_create_audio_stream or al_load_audio_stream.

Note: If the stream is still attached to a mixer or voice, al_detach_audio_stream is automatically called on it first.

See also: al_drain_audio_stream.

Examples: ex_mixer_pp, ex_saw, ex_stream_file, ex_stream_seek, ex_synth


Most helpful discussions: