My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
SDL_AudioSpec Struct Reference

#include <SDL_audio.h>

Public Attributes

int freq
 
SDL_AudioFormat format
 
Uint8 channels
 
Uint8 silence
 
Uint16 samples
 
Uint16 padding
 
Uint32 size
 
SDL_AudioCallback callback
 
voiduserdata
 

Detailed Description

The calculated values in this structure are calculated by SDL_OpenAudio().

Member Data Documentation

SDL_AudioCallback SDL_AudioSpec::callback

Callback that feeds the audio device (NULL to use SDL_QueueAudio()).

Uint8 SDL_AudioSpec::channels

Number of channels: 1 mono, 2 stereo

SDL_AudioFormat SDL_AudioSpec::format

Audio data format

int SDL_AudioSpec::freq

DSP frequency – samples per second

Uint16 SDL_AudioSpec::padding

Necessary for some compile environments

Uint16 SDL_AudioSpec::samples

Audio buffer size in samples (power of 2)

Uint8 SDL_AudioSpec::silence

Audio buffer silence value (calculated)

Uint32 SDL_AudioSpec::size

Audio buffer size in bytes (calculated)

void* SDL_AudioSpec::userdata

Userdata passed to callback (ignored for NULL callbacks).


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