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

# AuSoundPlaySynchronousFromFile(3nas)

play a file.

## Name

**AuSoundPlaySynchronousFromFile** - play a file.

## Synopsis

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

**AuBool** **AuSoundPlaySynchronousFromFile**(*server*, *filename*, *volume*)\
\
     **AuServer** \**server*;\
\
     char \**filename*;\
\
     int *volume*;

## Arguments

- *server*

  Specifies the connection to the audio server.

- *filename*

  Specifies the name of the audio data file.

- *volume*

  Specifies the volume level.

## Description

**AuSoundPlaySynchronousFromFile** plays *filename* and returns **AuTrue** when done or **AuFalse** if there was an error.

## See Also

**AuSoundPlay**, **AuSoundPlayFromBucket**, **AuSoundPlayFromData**, **AuSoundPlayFromFile**.

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