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

# SoundCloseFile(3nas)

close an audio file description.

## Name

**SoundCloseFile** - close an audio file description.

## Synopsis

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

int **SoundCloseFile**(*sound*)\
\
     **Sound** *sound*;

## Arguments

- *sound*

  Specifies the audio file description.

## Description

**SoundCloseFile** closes the audio file described by *sound* and returns 0 if successfull or -1 if there was an error. Any unwritten data is written and the storage associated with *sound* is deallocated.

## See Also

**SoundOpenFileForReading**, **SoundOpenFileForWriting**.

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