---
name: "al_set_audio_stream_loop_secs"
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_set_audio_stream_loop_secs"
---

# al\_set\_audio\_stream\_loop\_secs(3)

Allegro 5 API

## NAME

al\_set\_audio\_stream\_loop\_secs - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  bool al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM *stream,
     double start, double end)
  ```

## DESCRIPTION

Sets the loop points for the stream in seconds. Currently this can only be called on streams created with [al\_load\_audio\_stream(3)](/al_load_audio_stream/3.md), [al\_play\_audio\_stream(3)](/al_play_audio_stream/3.md), [al\_load\_audio\_stream\_f(3)](/al_load_audio_stream_f/3.md) or [al\_play\_audio\_stream\_f(3)](/al_play_audio_stream_f/3.md).
