---
name: "al_get_sample_instance_attached"
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_get_sample_instance_attached"
---

# al\_get\_sample\_instance\_attached(3)

Allegro 5 API

## NAME

al\_get\_sample\_instance\_attached - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  bool al_get_sample_instance_attached(const ALLEGRO_SAMPLE_INSTANCE *spl)
  ```

## DESCRIPTION

Return whether the sample instance is attached to something.

## SEE ALSO

[al\_attach\_sample\_instance\_to\_mixer(3)](/al_attach_sample_instance_to_mixer/3.md), [al\_attach\_sample\_instance\_to\_voice(3)](/al_attach_sample_instance_to_voice/3.md), [al\_detach\_sample\_instance(3)](/al_detach_sample_instance/3.md)
