ALmixer  0.0.5
Data Fields
ALmixer_AudioInfo Struct Reference

Roughly the equvialent to the Sound_AudioInfo struct in SDL_sound. More...

#include <ALmixer.h>

Data Fields

ALushort format
 Equivalent of SDL_AudioSpec.format. More...
 
ALubyte channels
 Number of sound channels. More...
 
ALuint rate
 Sample rate; frequency of sample points per second. More...
 

Detailed Description

Roughly the equvialent to the Sound_AudioInfo struct in SDL_sound.

Types have been changed to use AL types because I know those are available. This is different than SDL which uses fixed types so there might be subtle things you need to pay attention to..

Note
Originally, I just used the Sound_AudioInfo directly, but I've been trying to reduce the header dependencies for this file. But more to the point, I've been interested in dealing with the WinMain override problem Josh faced when trying to use SDL components in an MFC app which didn't like losing control of WinMain. My theory is that if I can purge the header of any thing that #include's SDL_main.h, then this might work. So I am now introducing my own AudioInfo struct.

Field Documentation

◆ channels

ALubyte ALmixer_AudioInfo::channels

Number of sound channels.

1 == mono, 2 == stereo.

◆ format

ALushort ALmixer_AudioInfo::format

Equivalent of SDL_AudioSpec.format.

◆ rate

ALuint ALmixer_AudioInfo::rate

Sample rate; frequency of sample points per second.


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