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

#include <emisound.h>

Collaboration diagram for Grim::EMISound:

List of all members.

Classes

struct  StackEntry

Public Member Functions

 EMISound (int fps)
 ~EMISound ()
bool startVoice (const Common::String &soundName, int volume=static_cast< int >(Audio::Mixer::kMaxChannelVolume), int pan=64)
bool startSfx (const Common::String &soundName, int volume=static_cast< int >(Audio::Mixer::kMaxChannelVolume), int pan=64)
bool startSfxFrom (const Common::String &soundName, const Math::Vector3d &pos, int volume=static_cast< int >(Audio::Mixer::kMaxChannelVolume))
bool getSoundStatus (const Common::String &soundName)
void stopSound (const Common::String &soundName)
int32 getPosIn16msTicks (const Common::String &soundName)
void setVolume (const Common::String &soundName, int volume)
void setPan (const Common::String &soundName, int pan)
bool loadSfx (const Common::String &soundName, int &id)
void playLoadedSound (int id, bool looping)
void playLoadedSoundFrom (int id, const Math::Vector3d &pos, bool looping)
void setLoadedSoundLooping (int id, bool looping)
void stopLoadedSound (int id)
void freeLoadedSound (int id)
void setLoadedSoundVolume (int id, int volume)
void setLoadedSoundPan (int id, int pan)
void setLoadedSoundPosition (int id, const Math::Vector3d &pos)
bool getLoadedSoundStatus (int id)
int getLoadedSoundVolume (int id)
void setMusicState (int stateId)
void selectMusicSet (int setId)
bool stateHasLooped (int stateId)
bool stateHasEnded (int stateId)
void restoreState (SaveGame *savedState)
void saveState (SaveGame *savedState)
void pushStateToStack ()
void popStateFromStack ()
void flushStack ()
void pause (bool paused)
void flushTracks ()
uint32 getMsPos (int stateId)
void updateSoundPositions ()

Private Types

typedef Common::List
< SoundTrack * > 
TrackList
typedef Common::HashMap< int,
SoundTrack * > 
TrackMap

Private Member Functions

void removeItem (SoundTrack *item)
TrackList::iterator getPlayingTrackByName (const Common::String &name)
void freeChannel (int32 channel)
void initMusicTable ()
void callback ()
void updateTrack (SoundTrack *track)
void freePlayingSounds ()
void freeLoadedSounds ()
SoundTrackinitTrack (const Common::String &soundName, Audio::Mixer::SoundType soundType, const Audio::Timestamp *start=nullptr) const
SoundTrackrestartTrack (SoundTrack *track)
bool startSound (const Common::String &soundName, Audio::Mixer::SoundType soundType, int volume, int pan)
bool startSoundFrom (const Common::String &soundName, Audio::Mixer::SoundType soundType, const Math::Vector3d &pos, int volume)
void saveTrack (SoundTrack *track, SaveGame *savedState)
SoundTrackrestoreTrack (SaveGame *savedState)
MusicEntryinitMusicTableDemo (const Common::String &filename)
void initMusicTableRetail (MusicEntry *table, const Common::String filename)

Static Private Member Functions

static void timerHandler (void *refConf)

Private Attributes

TrackList _playingTracks
SoundTrack_musicTrack
MusicEntry_musicTable
Common::String _musicPrefix
Common::Stack< StackEntry_stateStack
Common::Mutex _mutex
TrackMap _preloadedTrackMap
int _curMusicState
int _numMusicStates
int _callbackFps
int _curTrackId

Detailed Description

Definition at line 52 of file emisound.h.


Member Typedef Documentation

Definition at line 103 of file emisound.h.

Definition at line 113 of file emisound.h.


Constructor & Destructor Documentation

Grim::EMISound::EMISound ( int  fps  ) 

Definition at line 185 of file emisound.cpp.

Grim::EMISound::~EMISound (  ) 

Definition at line 196 of file emisound.cpp.


Member Function Documentation

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

Definition at line 821 of file emisound.cpp.

void Grim::EMISound::flushStack (  ) 

Definition at line 789 of file emisound.cpp.

void Grim::EMISound::flushTracks (  ) 

Definition at line 870 of file emisound.cpp.

void Grim::EMISound::freeChannel ( int32  channel  )  [private]
void Grim::EMISound::freeLoadedSound ( int  id  ) 

Definition at line 374 of file emisound.cpp.

void Grim::EMISound::freeLoadedSounds (  )  [private]

Definition at line 222 of file emisound.cpp.

void Grim::EMISound::freePlayingSounds (  )  [private]

Definition at line 215 of file emisound.cpp.

bool Grim::EMISound::getLoadedSoundStatus ( int  id  ) 

Definition at line 415 of file emisound.cpp.

int Grim::EMISound::getLoadedSoundVolume ( int  id  ) 

Definition at line 425 of file emisound.cpp.

uint32 Grim::EMISound::getMsPos ( int  stateId  ) 

Definition at line 560 of file emisound.cpp.

EMISound::TrackList::iterator Grim::EMISound::getPlayingTrackByName ( const Common::String name  )  [private]

Definition at line 206 of file emisound.cpp.

int32 Grim::EMISound::getPosIn16msTicks ( const Common::String soundName  ) 

Definition at line 287 of file emisound.cpp.

bool Grim::EMISound::getSoundStatus ( const Common::String soundName  ) 

Definition at line 267 of file emisound.cpp.

void Grim::EMISound::initMusicTable (  )  [private]

Definition at line 660 of file emisound.cpp.

MusicEntry * Grim::EMISound::initMusicTableDemo ( const Common::String filename  )  [private]

Definition at line 568 of file emisound.cpp.

void Grim::EMISound::initMusicTableRetail ( MusicEntry table,
const Common::String  filename 
) [private]

Definition at line 609 of file emisound.cpp.

SoundTrack * Grim::EMISound::initTrack ( const Common::String soundName,
Audio::Mixer::SoundType  soundType,
const Audio::Timestamp start = nullptr 
) const [private]

Definition at line 435 of file emisound.cpp.

bool Grim::EMISound::loadSfx ( const Common::String soundName,
int &  id 
)

Definition at line 317 of file emisound.cpp.

void Grim::EMISound::pause ( bool  paused  ) 

Definition at line 797 of file emisound.cpp.

void Grim::EMISound::playLoadedSound ( int  id,
bool  looping 
)

Definition at line 329 of file emisound.cpp.

void Grim::EMISound::playLoadedSoundFrom ( int  id,
const Math::Vector3d pos,
bool  looping 
)

Definition at line 341 of file emisound.cpp.

void Grim::EMISound::popStateFromStack (  ) 

Definition at line 767 of file emisound.cpp.

void Grim::EMISound::pushStateToStack (  ) 

Definition at line 753 of file emisound.cpp.

void Grim::EMISound::removeItem ( SoundTrack item  )  [private]
SoundTrack * Grim::EMISound::restartTrack ( SoundTrack track  )  [private]

Definition at line 735 of file emisound.cpp.

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

Definition at line 881 of file emisound.cpp.

SoundTrack * Grim::EMISound::restoreTrack ( SaveGame savedState  )  [private]

Definition at line 1024 of file emisound.cpp.

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

Definition at line 965 of file emisound.cpp.

void Grim::EMISound::saveTrack ( SoundTrack track,
SaveGame savedState 
) [private]

Definition at line 1008 of file emisound.cpp.

void Grim::EMISound::selectMusicSet ( int  setId  ) 

Definition at line 704 of file emisound.cpp.

void Grim::EMISound::setLoadedSoundLooping ( int  id,
bool  looping 
)

Definition at line 354 of file emisound.cpp.

void Grim::EMISound::setLoadedSoundPan ( int  id,
int  pan 
)

Definition at line 395 of file emisound.cpp.

void Grim::EMISound::setLoadedSoundPosition ( int  id,
const Math::Vector3d pos 
)

Definition at line 405 of file emisound.cpp.

void Grim::EMISound::setLoadedSoundVolume ( int  id,
int  volume 
)

Definition at line 385 of file emisound.cpp.

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

Definition at line 482 of file emisound.cpp.

void Grim::EMISound::setPan ( const Common::String soundName,
int  pan 
)

Definition at line 307 of file emisound.cpp.

void Grim::EMISound::setVolume ( const Common::String soundName,
int  volume 
)

Definition at line 297 of file emisound.cpp.

bool Grim::EMISound::startSfx ( const Common::String soundName,
int  volume = static_cast<int>(Audio::Mixer::kMaxChannelVolume),
int  pan = 64 
)

Definition at line 233 of file emisound.cpp.

bool Grim::EMISound::startSfxFrom ( const Common::String soundName,
const Math::Vector3d pos,
int  volume = static_cast<int>(Audio::Mixer::kMaxChannelVolume) 
)

Definition at line 237 of file emisound.cpp.

bool Grim::EMISound::startSound ( const Common::String soundName,
Audio::Mixer::SoundType  soundType,
int  volume,
int  pan 
) [private]

Definition at line 241 of file emisound.cpp.

bool Grim::EMISound::startSoundFrom ( const Common::String soundName,
Audio::Mixer::SoundType  soundType,
const Math::Vector3d pos,
int  volume 
) [private]

Definition at line 254 of file emisound.cpp.

bool Grim::EMISound::startVoice ( const Common::String soundName,
int  volume = static_cast<int>(Audio::Mixer::kMaxChannelVolume),
int  pan = 64 
)

Definition at line 229 of file emisound.cpp.

bool Grim::EMISound::stateHasEnded ( int  stateId  ) 

Definition at line 473 of file emisound.cpp.

bool Grim::EMISound::stateHasLooped ( int  stateId  ) 

Definition at line 462 of file emisound.cpp.

void Grim::EMISound::stopLoadedSound ( int  id  ) 

Definition at line 364 of file emisound.cpp.

void Grim::EMISound::stopSound ( const Common::String soundName  ) 

Definition at line 276 of file emisound.cpp.

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

Definition at line 180 of file emisound.cpp.

void Grim::EMISound::updateSoundPositions (  ) 

Definition at line 1064 of file emisound.cpp.

void Grim::EMISound::updateTrack ( SoundTrack track  )  [private]

Definition at line 851 of file emisound.cpp.


Member Data Documentation

Definition at line 118 of file emisound.h.

Definition at line 116 of file emisound.h.

Definition at line 119 of file emisound.h.

Definition at line 107 of file emisound.h.

Definition at line 106 of file emisound.h.

Definition at line 105 of file emisound.h.

Definition at line 111 of file emisound.h.

Definition at line 117 of file emisound.h.

Definition at line 104 of file emisound.h.

Definition at line 114 of file emisound.h.

Definition at line 108 of file emisound.h.


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


Generated on Sat Sep 21 2019 05:03:46 for ResidualVM by doxygen 1.7.1
curved edge   curved edge