al_drain_audio_stream(3)

al_drain_audio_stream3

Allegro 5 api

Usage

#include <allegro5/allegro_audio.h>
void al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream)

Overview

You should call this to finalise an audio stream that you will no longer be feeding, to wait for all pending buffers to finish playing. The stream’s playing state will change to false.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.