Utils/SWSounds.h File Reference

Constants, structures, and function prototypes for loading and playing sounds. More...

#include <SWCommonHeaders.h>

Enumerations

enum  PlayType { kFindEmptyChannel = 1, kPlaySoundInChannel, kReplaceSameSound }
 Set to 1 if you have the SDL_sound library. More...
enum  LoopType { kLoopForever = -1, kDoNotLoop = 0 }

Functions

SWError CreateSoundChannels (int numChannels)
void DisposeSoundChannels (void)
SWError LoadSound (char *filenames[], int numSounds)
void DisposeSounds (void)
void PlaySound (int soundID, int channelNum, PlayType playType)


Detailed Description

Constants, structures, and function prototypes for loading and playing sounds.


Enumeration Type Documentation

enum LoopType
 

Enumerator:
kLoopForever 
kDoNotLoop 

enum PlayType
 

Set to 1 if you have the SDL_sound library.

Enumerator:
kFindEmptyChannel 
kPlaySoundInChannel 
kReplaceSameSound 


Function Documentation

SWError CreateSoundChannels int  numChannels  ) 
 

void DisposeSoundChannels void   ) 
 

void DisposeSounds void   ) 
 

SWError LoadSound char *  filenames[],
int  numSounds
 

void PlaySound int  soundID,
int  channelNum,
PlayType  playType
 


Generated on Sun Jun 18 14:11:04 2006 for SpriteWorld X by  doxygen 1.4.6