---
name: "SoundWriteFile"
section: "3nas"
platform: "linux"
package: "libaudio-dev"
version: "1.9.4-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SoundWriteFile"
---

# SoundWriteFile(3nas)

write audio data to an audio file.

## Name

**SoundWriteFile** - write audio data to an audio file.

## Synopsis

\#include \<audio/audiolib.h\>

int **SoundWriteFile**(*buffer*, *num\_bytes*, *sound*)\
\
     char \**buffer*;\
\
     int *num\_bytes*;\
\
     **Sound** *sound*;

## Arguments

- *buffer*

  Specifies where the data should be written from.

- *num\_bytes*

  Specifies the length of the data.

- *sound*

  Specifies the audio file description.

## Description

**SoundWriteFile** writes *num\_bytes* from *buffer* to the audio file described by *sound* and returns the number of bytes written.

## See Also

**SoundOpenFileForWriting**.

audiolib - **Network Audio System** C Language Interface
