table of contents
other versions
- unstable 3.1.6+ds-2
- experimental 3.1.6+ds-1
SDL_AudioSpec(3type) | SDL3 DATATYPES | SDL_AudioSpec(3type) |
NAME¶
SDL_AudioSpec - Format specifier for audio data.
HEADER FILE¶
Defined in SDL3/SDL_audio.h
SYNOPSIS¶
#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;
AVAILABILITY¶
This struct is available since SDL 3.1.3.
SEE ALSO¶
•(3), SDL_AudioFormat(3type)
SDL 3.1.6 | Simple Directmedia Layer |