Advanced Strategic Command
Public Member Functions | List of all members
SoundLoopManager Class Reference

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

#include <soundList.h>

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: