---
name: "snd_pcm_format_set_silence"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_pcm_format_set_silence"
---

# snd\_pcm\_format\_set\_silence(9)

set the silence data on the buffer

## NAME

snd\_pcm\_format\_set\_silence - set the silence data on the buffer

## SYNOPSIS

**int snd\_pcm\_format\_set\_silence(snd\_pcm\_format\_t** *format***, void \*** *data***, unsigned int** *samples***);**

## ARGUMENTS

*format*

the PCM format

*data*

the buffer pointer

*samples*

the number of samples to set silence

## DESCRIPTION

Sets the silence data on the buffer for the given samples.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
