al_set_mixer_...ocess_callback(3alleg5)

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

✨ NAME ✨

al_set_mixer_postprocess_callback β€” it's giving Allegro 5 API, bestie πŸ’– (this page lives in the 3alleg5 manual, fyi 🫢)


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

bool al_set_mixer_postprocess_callback(ALLEGRO_MIXER *mixer,
   void (*pp_callback)(void *buf, unsigned int samples, void *data),
   void *pp_callback_userdata)

πŸ’… DESCRIPTION πŸ’…

Okay so, this one sets a post-processing filter function β€” and the way it works is it gets called after the attached streams have already been mixed. πŸŽ€

The buffer's format? It's literally whatever the mixer was created with, no cap. And the sample count and the user-data pointer get passed along too. ✨

πŸ¦‹ Note: the callback is called from a dedicated audio thread. Yes, a whole separate thread. Main character energy, honestly. πŸ’€

Allegro reference manual Β· al_set_mixer_...ocess_callback(3alleg5) β€” that's the source, the version, and the date all wrapped up in one little footer moment, and we're mentioning it here instead because ✨aesthetic✨. Bye bestie, go slay those audio callbacks πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from