SDL_sound unknown version (build with 'make docs' next time!)
Data Fields
Sound_AudioInfo Struct Reference

Information about an existing sample's format. More...

#include <SDL_sound.h>

Data Fields

Uint16 format
 
Uint8 channels
 
Uint32 rate
 

Detailed Description

Information about an existing sample's format.

These are the basics of a decoded sample's data structure: data format (see AUDIO_U8 and friends in SDL_audio.h), number of channels, and sample rate. If you need more explanation than that, you should stop developing sound code right now.

See also
Sound_SampleNew
Sound_SampleNewFromFile

Field Documentation

◆ channels

Uint8 Sound_AudioInfo::channels

Number of sound channels. 1 == mono, 2 == stereo.

◆ format

Uint16 Sound_AudioInfo::format

Equivalent of SDL_AudioSpec.format.

◆ rate

Uint32 Sound_AudioInfo::rate

Sample rate; frequency of sample points per second.


The documentation for this struct was generated from the following file: