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

#include <imuse.h>

Collaboration diagram for Grim::Imuse:

List of all members.

Public Member Functions

 Imuse (int fps, bool demo)
 ~Imuse ()
bool startSound (const char *soundName, int volGroupId, int hookId, int volume, int pan, int priority, Track *otherTrack)
bool startVoice (const char *soundName, int volume=127, int pan=64)
void startMusic (const char *soundName, int hookId, int volume, int pan)
void startMusicWithOtherPos (const char *soundName, int hookId, int volume, int pan, Track *otherTrack)
void startSfx (const char *soundName, int priority=127)
void restoreState (SaveGame *savedState)
void saveState (SaveGame *savedState)
void resetState ()
TrackfindTrack (const char *soundName)
void setPriority (const char *soundName, int priority)
void setVolume (const char *soundName, int volume)
int getVolume (const char *soundName)
void setPan (const char *soundName, int pan)
void setFadePan (const char *soundName, int destPan, int duration)
void setFadeVolume (const char *soundName, int destVolume, int duration)
void setHookId (const char *soundName, int hookId)
int getCountPlayedTracks (const char *soundName)
void stopSound (const char *soundName)
void stopAllSounds ()
void pause (bool pause)
void setMusicState (int stateId)
int setMusicSequence (int seqId)
void refreshScripts ()
void flushTracks ()
bool isVoicePlaying ()
char * getCurMusicSoundName ()
int getCurMusicPan ()
int getCurMusicVol ()
bool getSoundStatus (const char *soundName)
int32 getPosIn16msTicks (const char *soundName)

Private Member Functions

int32 makeMixerFlags (int32 flags)
void callback ()
void switchToNextRegion (Track *track)
int allocSlot (int priority)
void selectVolumeGroup (const char *soundName, int volGroupId)
void fadeOutMusic (int fadeDelay)
void fadeOutMusicAndStartNew (int fadeDelay, const char *filename, int hookId, int vol, int pan)
TrackcloneToFadeOutTrack (Track *track, int fadeDelay)
TrackmoveToFadeOutTrack (Track *track, int fadeDelay)
void playMusic (const ImuseTable *table, int atribPos, bool sequence)
void flushTrack (Track *track)

Static Private Member Functions

static void timerHandler (void *refConf)

Private Attributes

int _callbackFps
Track_track [MAX_IMUSE_TRACKS+MAX_IMUSE_FADETRACKS]
Common::Mutex _mutex
ImuseSndMgr_sound
bool _pause
bool _demo
int32 _attributes [185]
int32 _curMusicState
int32 _curMusicSeq
const ImuseTable_stateMusicTable
const ImuseTable_seqMusicTable

Detailed Description

Definition at line 38 of file imuse.h.


Constructor & Destructor Documentation

Grim::Imuse::Imuse ( int  fps,
bool  demo 
)

Definition at line 51 of file imuse.cpp.

Grim::Imuse::~Imuse (  ) 

Definition at line 75 of file imuse.cpp.


Member Function Documentation

int Grim::Imuse::allocSlot ( int  priority  )  [private]

Definition at line 31 of file imuse_track.cpp.

void Grim::Imuse::callback (  )  [private]

Definition at line 203 of file imuse.cpp.

Track * Grim::Imuse::cloneToFadeOutTrack ( Track track,
int  fadeDelay 
) [private]

Definition at line 367 of file imuse_track.cpp.

void Grim::Imuse::fadeOutMusic ( int  fadeDelay  )  [private]

Definition at line 343 of file imuse_track.cpp.

void Grim::Imuse::fadeOutMusicAndStartNew ( int  fadeDelay,
const char *  filename,
int  hookId,
int  vol,
int  pan 
) [private]

Definition at line 354 of file imuse_track.cpp.

Track * Grim::Imuse::findTrack ( const char *  soundName  ) 

Definition at line 173 of file imuse_track.cpp.

void Grim::Imuse::flushTrack ( Track track  )  [private]

Definition at line 31 of file imuse_script.cpp.

void Grim::Imuse::flushTracks (  ) 

Definition at line 52 of file imuse_script.cpp.

int Grim::Imuse::getCountPlayedTracks ( const char *  soundName  ) 

Definition at line 250 of file imuse_track.cpp.

int Grim::Imuse::getCurMusicPan (  ) 

Definition at line 321 of file imuse_track.cpp.

char * Grim::Imuse::getCurMusicSoundName (  ) 

Definition at line 310 of file imuse_track.cpp.

int Grim::Imuse::getCurMusicVol (  ) 

Definition at line 332 of file imuse_track.cpp.

int32 Grim::Imuse::getPosIn16msTicks ( const char *  soundName  ) 

Definition at line 98 of file imuse_script.cpp.

bool Grim::Imuse::getSoundStatus ( const char *  soundName  ) 

Definition at line 126 of file imuse_script.cpp.

int Grim::Imuse::getVolume ( const char *  soundName  ) 

Definition at line 226 of file imuse_track.cpp.

bool Grim::Imuse::isVoicePlaying (  ) 

Definition at line 113 of file imuse_script.cpp.

int32 Grim::Imuse::makeMixerFlags ( int32  flags  )  [private]

Definition at line 190 of file imuse.cpp.

Track * Grim::Imuse::moveToFadeOutTrack ( Track track,
int  fadeDelay 
) [private]

Definition at line 410 of file imuse_track.cpp.

void Grim::Imuse::pause ( bool  pause  ) 

Definition at line 175 of file imuse_script.cpp.

void Grim::Imuse::playMusic ( const ImuseTable table,
int  atribPos,
bool  sequence 
) [private]

Definition at line 90 of file imuse_music.cpp.

void Grim::Imuse::refreshScripts (  ) 

Definition at line 62 of file imuse_script.cpp.

void Grim::Imuse::resetState (  ) 

Definition at line 84 of file imuse.cpp.

void Grim::Imuse::restoreState ( SaveGame savedState  ) 

Definition at line 90 of file imuse.cpp.

void Grim::Imuse::saveState ( SaveGame savedState  ) 

Definition at line 155 of file imuse.cpp.

void Grim::Imuse::selectVolumeGroup ( const char *  soundName,
int  volGroupId 
) [private]

Definition at line 264 of file imuse_track.cpp.

void Grim::Imuse::setFadePan ( const char *  soundName,
int  destPan,
int  duration 
)

Definition at line 295 of file imuse_track.cpp.

void Grim::Imuse::setFadeVolume ( const char *  soundName,
int  destVolume,
int  duration 
)

Definition at line 280 of file imuse_track.cpp.

void Grim::Imuse::setHookId ( const char *  soundName,
int  hookId 
)

Definition at line 238 of file imuse_track.cpp.

int Grim::Imuse::setMusicSequence ( int  seqId  ) 

Definition at line 56 of file imuse_music.cpp.

void Grim::Imuse::setMusicState ( int  stateId  ) 

Definition at line 30 of file imuse_music.cpp.

void Grim::Imuse::setPan ( const char *  soundName,
int  pan 
)

Definition at line 214 of file imuse_track.cpp.

void Grim::Imuse::setPriority ( const char *  soundName,
int  priority 
)

Definition at line 188 of file imuse_track.cpp.

void Grim::Imuse::setVolume ( const char *  soundName,
int  volume 
)

Definition at line 202 of file imuse_track.cpp.

void Grim::Imuse::startMusic ( const char *  soundName,
int  hookId,
int  volume,
int  pan 
)

Definition at line 83 of file imuse_script.cpp.

void Grim::Imuse::startMusicWithOtherPos ( const char *  soundName,
int  hookId,
int  volume,
int  pan,
Track otherTrack 
)

Definition at line 88 of file imuse_script.cpp.

void Grim::Imuse::startSfx ( const char *  soundName,
int  priority = 127 
)

Definition at line 93 of file imuse_script.cpp.

bool Grim::Imuse::startSound ( const char *  soundName,
int  volGroupId,
int  hookId,
int  volume,
int  pan,
int  priority,
Track otherTrack 
)

Definition at line 73 of file imuse_track.cpp.

bool Grim::Imuse::startVoice ( const char *  soundName,
int  volume = 127,
int  pan = 64 
)

Definition at line 78 of file imuse_script.cpp.

void Grim::Imuse::stopAllSounds (  ) 

Definition at line 159 of file imuse_script.cpp.

void Grim::Imuse::stopSound ( const char *  soundName  ) 

Definition at line 145 of file imuse_script.cpp.

void Grim::Imuse::switchToNextRegion ( Track track  )  [private]

Definition at line 326 of file imuse.cpp.

void Grim::Imuse::timerHandler ( void *  refConf  )  [static, private]

Definition at line 46 of file imuse.cpp.


Member Data Documentation

Definition at line 51 of file imuse.h.

Definition at line 41 of file imuse.h.

Definition at line 53 of file imuse.h.

Definition at line 52 of file imuse.h.

bool Grim::Imuse::_demo [private]

Definition at line 49 of file imuse.h.

Definition at line 45 of file imuse.h.

bool Grim::Imuse::_pause [private]

Definition at line 48 of file imuse.h.

Definition at line 56 of file imuse.h.

Definition at line 46 of file imuse.h.

Definition at line 55 of file imuse.h.

Track* Grim::Imuse::_track[MAX_IMUSE_TRACKS+MAX_IMUSE_FADETRACKS] [private]

Definition at line 43 of file imuse.h.


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


Generated on Sat Mar 23 2019 05:07:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge