---
name: "SoundReadFile"
section: "3x"
platform: "linux"
package: "nas"
version: "1.2p5-3"
release: "Debian 2.0 (Hamm)"
platforms: ["linux"]
url: "https://new.carta.tech/SoundReadFile/3x"
---

# SoundReadFile(3x)

read audio data from an audio file.

## Name

**SoundReadFile** - read audio data from an audio file.

## Synopsis

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

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

## Arguments

- *buffer*

  Specifies where the data should be read into.

- *num\_bytes*

  Specifies the length of the data to read.

- *sound*

  Specifies the audio file description.

## Description

**SoundReadFile** reads *num\_bytes* into *buffer* from the audio file described by *sound*.

## See Also

**SoundOpenFileForReading**.

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