al_restore_default_mixer(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_restore_default_mixer(3alleg5) β€” Allegro 5 API. Yes bestie, this is the manual page for that exact function, and the manual name is literally right here. Iconic. πŸ’–


πŸ“œ SYNOPSIS πŸ“œ

#include <allegro5/allegro_audio.h>

bool al_restore_default_mixer(void)

🎧 DESCRIPTION 🎧

Okay so al_restore_default_mixer restores Allegro’s default mixer and attaches it to the default voice. Lowkey powerful. If the default mixer hasn’t been created before, it will be created. If the default voice hasn’t been set via al_set_default_voice(3alleg5) or created before, it will also be created. Highkey convenient. ✨

Not me dropping a warning though: all samples started with al_play_sample(3alleg5) will be stopped, and all sample instances returned by al_lock_sample_id(3alleg5) will be invalidated. So don’t be shocked, bestie. 🫒

It returns true on success, false on error. That’s the vibe check. Periodt. πŸ’…


πŸ”— SEE ALSO πŸ”—


Allegro reference manual said it, al_restore_default_mixer(3alleg5). No date on this footer, so that’s the whole cute sign-off. πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from