---
name: "al_set_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_set_default_mixer/3alleg5"
---

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

Allegro 5 API

## NAME

al\_set\_default\_mixer - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  bool al_set_default_mixer(ALLEGRO_MIXER *mixer)
  ```

## DESCRIPTION

Sets the default mixer. 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. If you are using your own mixer, this should be called before al\_reserve\_samples(3alleg5).

Returns true on success, false on error.

## SEE ALSO

al\_reserve\_samples(3alleg5), al\_play\_sample(3alleg5), al\_get\_default\_mixer(3alleg5), al\_restore\_default\_mixer(3alleg5)
