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 MoveUnit::runAction().

void SoundLoopManager::fadeOut ( int  ms  )  [inline]

Definition at line 26 of file soundList.h.

References Sound::fadeOut().

Referenced by MoveUnit::runAction().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:30 2012 for Advanced Strategic Command by  doxygen 1.5.1