SDL_AudioSpec.3type - Man Page
Format specifier for audio data.
Synopsis
#include <SDL3/SDL_audio.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;
Availability
This struct is available since SDL 3.2.0.
See Also
SDL_AudioFormat(3type)
Info
SDL 3.2.20 Simple Directmedia Layer SDL3 DATATYPES