---
name: "al_detach_sample_instance"
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_detach_sample_instance"
---

# al\_detach\_sample\_instance(3)

Allegro 5 API

## NAME

al\_detach\_sample\_instance - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

Detach the sample instance from whatever it’s attached to, if anything.

Returns true on success.

## 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\_get\_sample\_instance\_attached(3)](/al_get_sample_instance_attached/3.md)
