al_set_default_voice(3)

al_set_default_voice3

Allegro 5 api

Usage

#include <allegro5/allegro_audio.h>
void al_set_default_voice(ALLEGRO_VOICE *voice)

Overview

You can call this before calling al_restore_default_mixer to provide the voice which should be used. Any previous voice will be destroyed. You can also pass NULL to destroy the current default voice.

Since

5.1.13

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