---
name: "al_restore_default_mixer"
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_restore_default_mixer/3alleg5"
---

# al\_restore\_default\_mixer(3alleg5)

Allegro 5 API

## NAME

al\_restore\_default\_mixer - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

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(3alleg5) or created before, it will also be created. 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.

Returns true on success, false on error.

## SEE ALSO

al\_get\_default\_mixer(3alleg5), al\_set\_default\_mixer(3alleg5), al\_reserve\_samples(3alleg5).
