---
name: "al_attach_sample_instance_to_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_attach_sample_instance_to_mixer"
---

# al\_attach\_sample\_instance\_to\_mixer(3)

Allegro 5 API

## NAME

al\_attach\_sample\_instance\_to\_mixer - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  bool al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE *spl,
     ALLEGRO_MIXER *mixer)
  ```

## DESCRIPTION

Attach a sample instance to a mixer. The instance must not already be attached to anything.

Returns true on success, false on failure.

## SEE ALSO

[al\_detach\_sample\_instance(3)](/al_detach_sample_instance/3.md).
