al_drain_audio_stream(3)
π al_drain_audio_stream π
Bestie, this page lives in the Library Functions Manual and itβs giving Allegro 5 API energy. π
β¨ NAME β¨
al_drain_audio_stream β Allegro 5 API. Itβs the audio-stream finaliser, and yes itβs lowkey iconic for that. π¦
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
void al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
π DESCRIPTION π
Okay so you should call this to finalise an audio stream that you will no longer be feeding, bestie β it waits for all pending buffers to finish playing. π«Ά
The streamβs playing state will change to false. Periodt. β¨
π₯ SEE ALSO π₯
al_destroy_audio_stream(3)β the other audio-stream cleanup reference youβre gonna want in your group chat. π
Signed off with love by the Allegro reference manual. Version/date: not listed on this page, bestie β thatβs all the metadata we get. π π«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms