al_restore_default_mixer(3)

al_restore_default_mixer3

Allegro 5 api

Usage

#include <allegro5/allegro_audio.h>
bool al_restore_default_mixer(void)

Overview

Restores Allegro’s default mixer and attaches it to the default voice. 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(3) or created before, it will also be created. 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.

Returns true on success, false on error.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.