---
name: "al_fill_silence"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_fill_silence/3alleg5"
---

# al\_fill\_silence(3alleg5)

Allegro 5 API

## NAME

al\_fill\_silence - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  void al_fill_silence(void *buf, unsigned int samples,
     ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
  ```

## DESCRIPTION

Fill a buffer with silence, for the given format and channel configuration. The buffer must have enough space for the given number of samples, and be properly aligned.

## SINCE

5\.1.8
