sound.cpp File Reference

#include <boost/regex.hpp>
#include <cstring>
#include <stdlib.h>
#include <SDL.h>
#include <SDL_mixer.h>
#include <SDL_sound.h>
#include "../global.h"
#include "sound.h"
#include "../basestrm.h"
#include "../music.h"
#include "../sgstream.h"

Include dependency graph for sound.cpp:

Go to the source code of this file.

Classes

class  SoundSystem_InternalData
class  Sound_InternalData

Functions

pair< Sound_Sample *, Mix_Chunk * > loadWave (const ASCString &name)

Variables

const int WAIT_SLEEP_MSEC = 50
 How long should this process sleep while waiting for a sound to play.


Function Documentation

pair<Sound_Sample*, Mix_Chunk*> loadWave ( const ASCString name  ) 

Definition at line 309 of file sound.cpp.

References displayLogMessage(), errorMessage(), exist(), tnstream::reading, SDL_RWFromStream(), and warningMessage().

Referenced by Sound::Sound().


Variable Documentation

const int WAIT_SLEEP_MSEC = 50

How long should this process sleep while waiting for a sound to play.

Definition at line 37 of file sound.cpp.

Referenced by Sound::playWait().


Generated on Mon May 21 01:43:07 2012 for Advanced Strategic Command by  doxygen 1.5.1