ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::BaseGameMusic Class Reference

#include <base_game_music.h>

Collaboration diagram for Wintermute::BaseGameMusic:

List of all members.

Public Member Functions

 BaseGameMusic (BaseGame *gameRef)
void cleanup ()
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name)
bool resumeMusic (int channel)
bool setMusicStartTime (int channel, uint32 time)
bool pauseMusic (int channel)
bool stopMusic (int channel)
bool playMusic (int channel, const char *filename, bool looping=true, uint32 loopStart=0)
bool updateMusicCrossfade ()
bool persistChannels (BasePersistenceManager *persistMgr)
bool persistCrossfadeSettings (BasePersistenceManager *persistMgr)

Private Attributes

BaseSound_music [NUM_MUSIC_CHANNELS]
uint32 _musicStartTime [NUM_MUSIC_CHANNELS]
bool _musicCrossfadeRunning
bool _musicCrossfadeSwap
uint32 _musicCrossfadeStartTime
uint32 _musicCrossfadeLength
int32 _musicCrossfadeChannel1
int32 _musicCrossfadeChannel2
int32 _musicCrossfadeVolume1
int32 _musicCrossfadeVolume2

Detailed Description

Definition at line 43 of file base_game_music.h.

Constructor & Destructor Documentation

Wintermute::BaseGameMusic::BaseGameMusic ( BaseGame gameRef  ) 

Definition at line 40 of file base_game_music.cpp.

Member Function Documentation

void Wintermute::BaseGameMusic::cleanup (  ) 

Definition at line 56 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::pauseMusic ( int  channel  ) 

Definition at line 111 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::persistChannels ( BasePersistenceManager persistMgr  ) 

Definition at line 227 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::persistCrossfadeSettings ( BasePersistenceManager persistMgr  ) 

Definition at line 235 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::playMusic ( int  channel,
const char *  filename,
bool  looping = true,
uint32  loopStart = 0 

Definition at line 65 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::resumeMusic ( int  channel  ) 

Definition at line 126 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::scCallMethod ( ScScript script,
ScStack stack,
ScStack thisStack,
const char *  name 

Definition at line 251 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::setMusicStartTime ( int  channel,
uint32  time 

Definition at line 141 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::stopMusic ( int  channel  ) 

Definition at line 93 of file base_game_music.cpp.

bool Wintermute::BaseGameMusic::updateMusicCrossfade (  ) 

Definition at line 156 of file base_game_music.cpp.

Member Data Documentation

Definition at line 60 of file base_game_music.h.

BaseSound* Wintermute::BaseGameMusic::_music[NUM_MUSIC_CHANNELS] [private]

Definition at line 61 of file base_game_music.h.

Definition at line 63 of file base_game_music.h.

Definition at line 64 of file base_game_music.h.

uint32 Wintermute::BaseGameMusic::_musicStartTime[NUM_MUSIC_CHANNELS] [private]

Definition at line 62 of file base_game_music.h.

The documentation for this class was generated from the following files:

Generated on Sat Sep 26 2020 05:04:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge