---
name: "al_create_mixer"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_create_mixer"
---

# al\_create\_mixer(3)

Allegro 5 API

## NAME

al\_create\_mixer - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  ALLEGRO_MIXER *al_create_mixer(unsigned int freq,
     ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
  ```

## DESCRIPTION

Creates a mixer to attach sample instances, audio streams, or other mixers to. It will mix into a buffer at the requested frequency (in Hz) and channel count.

The only supported audio depths are ALLEGRO\_AUDIO\_DEPTH\_FLOAT32 and ALLEGRO\_AUDIO\_DEPTH\_INT16 (not yet complete).

To actually produce any output, the mixer will have to be attached to a voice using [al\_attach\_mixer\_to\_voice(3)](/al_attach_mixer_to_voice/3.md).

Reasonable default arguments are:

-

  ```
  al_create_mixer(44100, ALLEGRO_AUDIO_DEPTH_FLOAT32, ALLEGRO_CHANNEL_CONF_2)
  ```

Returns true on success, false on error.

## SEE ALSO

[al\_destroy\_mixer(3)](/al_destroy_mixer/3.md), [ALLEGRO\_AUDIO\_DEPTH(3)](/ALLEGRO_AUDIO_DEPTH/3.md), [ALLEGRO\_CHANNEL\_CONF(3)](/ALLEGRO_CHANNEL_CONF/3.md)
