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

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.

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 304 of file sound.cpp.

References Sound_Sample::buffer, Sound_Sample::buffer_size, Sound_AudioInfo::channels, displayLogMessage(), errorMessage(), exist(), Sound_AudioInfo::format, Sound_AudioInfo::rate, tnstream::reading, SDL_RWFromStream(), Sound_DecodeAll(), Sound_GetError(), Sound_NewSample(), and warning().

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 32 of file sound.cpp.

Referenced by Sound::playWait().


Generated on Tue Jun 24 02:09:31 2008 for Advanced Strategic Command by  doxygen 1.4.2