ScummVM
LastExpress::SoundManager Class Reference

#include <sound.h>

+ Collaboration diagram for LastExpress::SoundManager:

Public Member Functions

 SoundManager (LastExpressEngine *engine)
 
 ~SoundManager ()
 
void playSound (EntityIndex entity, Common::String filename, SoundFlag flag=kSoundVolumeEntityDefault, byte activateDelay=0)
 
bool playSoundWithSubtitles (Common::String filename, uint32 flag, EntityIndex entity, unsigned activateDelay=0)
 
void playSoundEvent (EntityIndex entity, byte action, byte activateDelay=0)
 
void playDialog (EntityIndex entity, EntityIndex entityDialog, SoundFlag flag, byte a4)
 
void playSteam (CityIndex index)
 
void playFightSound (byte action, byte a4)
 
void playLocomotiveSound ()
 
void playWarningCompartment (EntityIndex entity, ObjectIndex compartment)
 
void playAmbientSound (int param)
 
void readText (int id)
 
const char * getDialogName (EntityIndex entity) const
 
void excuseMe (EntityIndex entity, EntityIndex entity2=kEntityPlayer, SoundFlag flag=kVolumeNone)
 
void excuseMeCath ()
 
const char * justCheckingCath () const
 
const char * wrongDoorCath () const
 
const char * justAMinuteCath () const
 
SoundFlag getSoundFlag (EntityIndex index) const
 
SoundQueuegetQueue ()
 
uint32 getAmbientSoundDuration ()
 
bool needToChangeAmbientVolume ()
 
SoundFlag getChangedAmbientVolume ()
 
void clearAmbientVolumeChange ()
 

Private Attributes

LastExpressEngine_engine
 
SoundQueue_queue
 
uint32 _lastWarning [12]
 
int _ambientSoundDuration
 
uint32 _ambientVolumeChangeTimeMS
 
uint32 _ambientVolumeChangeDelayMS
 
SoundFlag _ambientScheduledVolume
 

Detailed Description

Definition at line 35 of file sound.h.

Constructor & Destructor Documentation

◆ SoundManager()

LastExpress::SoundManager::SoundManager ( LastExpressEngine engine)

Definition at line 115 of file sound.cpp.

◆ ~SoundManager()

LastExpress::SoundManager::~SoundManager ( )

Definition at line 126 of file sound.cpp.

Member Function Documentation

◆ clearAmbientVolumeChange()

void LastExpress::SoundManager::clearAmbientVolumeChange ( )
inline

Definition at line 73 of file sound.h.

◆ excuseMe()

void LastExpress::SoundManager::excuseMe ( EntityIndex  entity,
EntityIndex  entity2 = kEntityPlayer,
SoundFlag  flag = kVolumeNone 
)

Definition at line 887 of file sound.cpp.

◆ excuseMeCath()

void LastExpress::SoundManager::excuseMeCath ( )

Definition at line 1155 of file sound.cpp.

◆ getAmbientSoundDuration()

uint32 LastExpress::SoundManager::getAmbientSoundDuration ( )
inline

Definition at line 68 of file sound.h.

◆ getChangedAmbientVolume()

SoundFlag LastExpress::SoundManager::getChangedAmbientVolume ( )
inline

Definition at line 70 of file sound.h.

◆ getDialogName()

const char * LastExpress::SoundManager::getDialogName ( EntityIndex  entity) const

Definition at line 378 of file sound.cpp.

◆ getQueue()

SoundQueue* LastExpress::SoundManager::getQueue ( )
inline

Definition at line 67 of file sound.h.

◆ getSoundFlag()

SoundFlag LastExpress::SoundManager::getSoundFlag ( EntityIndex  index) const

Definition at line 1237 of file sound.cpp.

◆ justAMinuteCath()

const char * LastExpress::SoundManager::justAMinuteCath ( ) const

Definition at line 1216 of file sound.cpp.

◆ justCheckingCath()

const char * LastExpress::SoundManager::justCheckingCath ( ) const

Definition at line 1171 of file sound.cpp.

◆ needToChangeAmbientVolume()

bool LastExpress::SoundManager::needToChangeAmbientVolume ( )

Definition at line 176 of file sound.cpp.

◆ playAmbientSound()

void LastExpress::SoundManager::playAmbientSound ( int  param)

Definition at line 1294 of file sound.cpp.

◆ playDialog()

void LastExpress::SoundManager::playDialog ( EntityIndex  entity,
EntityIndex  entityDialog,
SoundFlag  flag,
byte  a4 
)

Definition at line 367 of file sound.cpp.

◆ playFightSound()

void LastExpress::SoundManager::playFightSound ( byte  action,
byte  a4 
)

Definition at line 323 of file sound.cpp.

◆ playLocomotiveSound()

void LastExpress::SoundManager::playLocomotiveSound ( )

Definition at line 374 of file sound.cpp.

◆ playSound()

void LastExpress::SoundManager::playSound ( EntityIndex  entity,
Common::String  filename,
SoundFlag  flag = kSoundVolumeEntityDefault,
byte  activateDelay = 0 
)

Definition at line 136 of file sound.cpp.

◆ playSoundEvent()

void LastExpress::SoundManager::playSoundEvent ( EntityIndex  entity,
byte  action,
byte  activateDelay = 0 
)

Definition at line 180 of file sound.cpp.

◆ playSoundWithSubtitles()

bool LastExpress::SoundManager::playSoundWithSubtitles ( Common::String  filename,
uint32  flag,
EntityIndex  entity,
unsigned  activateDelay = 0 
)

Definition at line 151 of file sound.cpp.

◆ playSteam()

void LastExpress::SoundManager::playSteam ( CityIndex  index)

Definition at line 308 of file sound.cpp.

◆ playWarningCompartment()

void LastExpress::SoundManager::playWarningCompartment ( EntityIndex  entity,
ObjectIndex  compartment 
)

Definition at line 704 of file sound.cpp.

◆ readText()

void LastExpress::SoundManager::readText ( int  id)

Definition at line 683 of file sound.cpp.

◆ wrongDoorCath()

const char * LastExpress::SoundManager::wrongDoorCath ( ) const

Definition at line 1192 of file sound.cpp.

Member Data Documentation

◆ _ambientScheduledVolume

SoundFlag LastExpress::SoundManager::_ambientScheduledVolume
private

Definition at line 85 of file sound.h.

◆ _ambientSoundDuration

int LastExpress::SoundManager::_ambientSoundDuration
private

Definition at line 83 of file sound.h.

◆ _ambientVolumeChangeDelayMS

uint32 LastExpress::SoundManager::_ambientVolumeChangeDelayMS
private

Definition at line 84 of file sound.h.

◆ _ambientVolumeChangeTimeMS

uint32 LastExpress::SoundManager::_ambientVolumeChangeTimeMS
private

Definition at line 84 of file sound.h.

◆ _engine

LastExpressEngine* LastExpress::SoundManager::_engine
private

Definition at line 76 of file sound.h.

◆ _lastWarning

uint32 LastExpress::SoundManager::_lastWarning[12]
private

Definition at line 80 of file sound.h.

◆ _queue

SoundQueue* LastExpress::SoundManager::_queue
private

Definition at line 77 of file sound.h.


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