Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Sound_AudioInfo Struct Reference

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

#include <SDL_sound.h>

List of all members.

Public Attributes

Uint16 format
 Equivalent of SDL_AudioSpec.format.
Uint8 channels
 Number of sound channels.
Uint32 rate
 Sample rate; frequency of sample points per second.


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

Definition at line 133 of file SDL_sound.h.


Member Data Documentation

Uint8 Sound_AudioInfo::channels
 

Number of sound channels.

1 == mono, 2 == stereo.

Definition at line 136 of file SDL_sound.h.

Referenced by loadWave().

Uint16 Sound_AudioInfo::format
 

Equivalent of SDL_AudioSpec.format.

Definition at line 135 of file SDL_sound.h.

Referenced by loadWave().

Uint32 Sound_AudioInfo::rate
 

Sample rate; frequency of sample points per second.

Definition at line 137 of file SDL_sound.h.

Referenced by loadWave().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 24 02:20:53 2008 for Advanced Strategic Command by  doxygen 1.4.2