al_set_default_mixer(3)
π NAME π
okay so welcome to the Allegro 5 API corner of the Allegro reference manual β this is the al_set_default_mixer page, bestie β¨
al_set_default_mixer β an Allegro 5 API function that sets the default mixer. Thatβs the whole name vibe π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_audio.h>
bool al_set_default_mixer(ALLEGRO_MIXER *mixer)
π¦ DESCRIPTION π¦
So hereβs the tea, bestie: al_set_default_mixer sets the default mixer. Periodt. π
When you do that, all samples started with al_play_sample(3) will be stopped, and all sample instances returned by al_lock_sample_id(3) will be invalidated. Yes, literally all of them β thatβs the important caveat, so donβt say I didnβt warn you π
If youβre using your own mixer, this should be called before al_reserve_samples(3). That ordering is highkey the move π«Ά
It returns true on success and false on error. Simple as that, no cap β
π SEE ALSO π
xoxo, the Allegro reference manual π β this was the al_set_default_mixer(3) page, and thatβs the footer vibe, bestie π
π¦ 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