---
name: "al_set_audio_stream_fragment"
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_fragment"
---

# al\_set\_audio\_stream\_fragment(3)

Allegro 5 API

## NAME

al\_set\_audio\_stream\_fragment - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)
  ```

## DESCRIPTION

This function needs to be called for every successful call of [al\_get\_audio\_stream\_fragment(3)](/al_get_audio_stream_fragment/3.md) to indicate that the buffer (pointed to by `val`) is filled with new data.

## SEE ALSO

[al\_get\_audio\_stream\_fragment(3)](/al_get_audio_stream_fragment/3.md)
