DOKK / manpages / debian 13 / libsdl3-doc / SDL_AudioSpec.3type.en
SDL_AudioSpec(3type) SDL3 DATATYPES SDL_AudioSpec(3type)

SDL_AudioSpec - Format specifier for audio data.

Defined in SDL3/SDL_audio.h

#include "SDL3/SDL.h"
typedef struct SDL_AudioSpec
{
    SDL_AudioFormat format;     /**< Audio data format */
    int channels;               /**< Number of channels: 1 mono, 2 stereo, etc */
    int freq;                   /**< sample rate: sample frames per second */
} SDL_AudioSpec;

This struct is available since SDL 3.2.0.

(3), SDL_AudioFormat(3type)

SDL 3.2.10 Simple Directmedia Layer