---
name: "al_set_default_voice"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_default_voice/3alleg5"
---

# al\_set\_default\_voice(3alleg5)

Allegro 5 API

## NAME

al\_set\_default\_voice - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

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

## SEE ALSO

al\_get\_default\_mixer(3alleg5)
