al_set_default_mixer(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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