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

SoundLoopManager Class Reference

A helper class for managing looping sounds. More...

#include <soundList.h>

List of all members.

Public Member Functions

 SoundLoopManager (Sound *snd, bool _active=true)
void activate (int dummy)
void fadeOut (int ms)
 ~SoundLoopManager ()


Detailed Description

A helper class for managing looping sounds.

A sound may be preloaded, later activated and this class assures that it is closed again. Or it simply can be loaded with a running sound and stops it on destruction

Definition at line 19 of file soundList.h.


Constructor & Destructor Documentation

SoundLoopManager::SoundLoopManager Sound snd,
bool  _active = true
 

Definition at line 43 of file soundList.cpp.

References displayLogMessage().

SoundLoopManager::~SoundLoopManager  )  [inline]
 

Definition at line 27 of file soundList.h.

References Sound::stop().


Member Function Documentation

void SoundLoopManager::activate int  dummy  ) 
 

Definition at line 50 of file soundList.cpp.

References displayLogMessage(), and Sound::playLoop().

Referenced by BaseVehicleMovement::moveunitxy().

void SoundLoopManager::fadeOut int  ms  )  [inline]
 

Definition at line 26 of file soundList.h.

References Sound::fadeOut().

Referenced by BaseVehicleMovement::moveunitxy().


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