---
name: "SDL_GetAudioFormatName"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetAudioFormatName"
---

# SDL\_GetAudioFormatName(3)

Get the human readable name of an audio format.

## NAME

SDL\_GetAudioFormatName - Get the human readable name of an audio format.

## HEADER FILE

Defined in SDL3/SDL\_audio.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**const char \* SDL\_GetAudioFormatName(SDL\_AudioFormat format);**

## FUNCTION PARAMETERS

- *format*

  the audio format to query.

## RETURN VALUE

Returns the human readable name of the specified audio format or " **SDL\_AUDIO\_UNKNOWN** " if the format isn't recognized.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
