---
name: "al_get_sample_instance_time"
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_time"
---

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

Allegro 5 API

## NAME

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

## SYNOPSIS

-

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

## DESCRIPTION

Return the length of the sample instance in seconds, assuming a playback speed of 1.0.

## SEE ALSO

[al\_get\_sample\_instance\_length(3)](/al_get_sample_instance_length/3.md)
