ScummVM
LastExpress::SoundQueue Class Reference

#include <queue.h>

+ Inheritance diagram for LastExpress::SoundQueue:
+ Collaboration diagram for LastExpress::SoundQueue:

Public Member Functions

 SoundQueue (LastExpressEngine *engine)
 
 ~SoundQueue () override
 
void addToQueue (SoundEntry *entry)
 
void stop (Common::String filename)
 
void stop (EntityIndex entity)
 
void updateQueue ()
 
void stopAmbient ()
 
void stopAllExcept (SoundTag tag1, SoundTag tag2=kSoundTagNone)
 
void destroyAllSound ()
 
void stopAll ()
 
int getAmbientState ()
 
void startAmbient ()
 
void setAmbientToSteam ()
 
void assignNISLink (EntityIndex index)
 
void fade (EntityIndex entity)
 
void fade (SoundTag tag)
 
void fade (Common::String filename)
 
void endAmbient ()
 
SoundEntrygetEntry (SoundTag tag)
 
SoundEntrygetEntry (EntityIndex index)
 
SoundEntrygetEntry (Common::String name)
 
uint32 getEntryTime (EntityIndex index)
 
bool isBuffered (Common::String filename, bool testForEntity=false)
 
bool isBuffered (EntityIndex entity)
 
void updateSubtitles ()
 
void addSubtitle (SubtitleEntry *entry)
 
void removeSubtitle (SubtitleEntry *entry)
 
void setCurrentSubtitle (SubtitleEntry *entry)
 
SubtitleEntrygetCurrentSubtitle ()
 
void saveLoadWithSerializer (Common::Serializer &ser) override
 
uint32 count ()
 
uint32 getFlag ()
 
int getSubtitleFlag ()
 
void setSubtitleFlag (int flag)
 
int32 generateNextTag ()
 

Protected Member Functions

void stopAllSound ()
 

Private Attributes

LastExpressEngine_engine
 
int _ambientState
 
int32 _currentTag
 
uint32 _flag
 
Common::List< SoundEntry * > _soundList
 List of all sound entries. More...
 
int _subtitlesFlag
 
Common::List< SubtitleEntry * > _subtitles
 
SubtitleEntry_currentSubtitle
 

Friends

class Debugger
 

Additional Inherited Members

- Private Member Functions inherited from Common::Serializable
virtual ~Serializable ()
 

Detailed Description

Definition at line 38 of file queue.h.

Constructor & Destructor Documentation

◆ SoundQueue()

LastExpress::SoundQueue::SoundQueue ( LastExpressEngine engine)

Definition at line 36 of file queue.cpp.

◆ ~SoundQueue()

LastExpress::SoundQueue::~SoundQueue ( )
override

Definition at line 46 of file queue.cpp.

Member Function Documentation

◆ addSubtitle()

void LastExpress::SoundQueue::addSubtitle ( SubtitleEntry entry)
inline

Definition at line 73 of file queue.h.

◆ addToQueue()

void LastExpress::SoundQueue::addToQueue ( SoundEntry entry)

Definition at line 65 of file queue.cpp.

◆ assignNISLink()

void LastExpress::SoundQueue::assignNISLink ( EntityIndex  index)

Definition at line 172 of file queue.cpp.

◆ count()

uint32 LastExpress::SoundQueue::count ( )

Definition at line 334 of file queue.cpp.

◆ destroyAllSound()

void LastExpress::SoundQueue::destroyAllSound ( )

Definition at line 143 of file queue.cpp.

◆ endAmbient()

void LastExpress::SoundQueue::endAmbient ( )

Definition at line 200 of file queue.cpp.

◆ fade() [1/3]

void LastExpress::SoundQueue::fade ( Common::String  filename)

Definition at line 192 of file queue.cpp.

◆ fade() [2/3]

void LastExpress::SoundQueue::fade ( EntityIndex  entity)

Definition at line 178 of file queue.cpp.

◆ fade() [3/3]

void LastExpress::SoundQueue::fade ( SoundTag  tag)

Definition at line 186 of file queue.cpp.

◆ generateNextTag()

int32 LastExpress::SoundQueue::generateNextTag ( )
inline

Definition at line 87 of file queue.h.

◆ getAmbientState()

int LastExpress::SoundQueue::getAmbientState ( )
inline

Definition at line 54 of file queue.h.

◆ getCurrentSubtitle()

SubtitleEntry* LastExpress::SoundQueue::getCurrentSubtitle ( )
inline

Definition at line 76 of file queue.h.

◆ getEntry() [1/3]

SoundEntry * LastExpress::SoundQueue::getEntry ( Common::String  name)

Definition at line 216 of file queue.cpp.

◆ getEntry() [2/3]

SoundEntry * LastExpress::SoundQueue::getEntry ( EntityIndex  index)

Definition at line 207 of file queue.cpp.

◆ getEntry() [3/3]

SoundEntry * LastExpress::SoundQueue::getEntry ( SoundTag  tag)

Definition at line 228 of file queue.cpp.

◆ getEntryTime()

uint32 LastExpress::SoundQueue::getEntryTime ( EntityIndex  index)

Definition at line 237 of file queue.cpp.

◆ getFlag()

uint32 LastExpress::SoundQueue::getFlag ( )
inline

Definition at line 83 of file queue.h.

◆ getSubtitleFlag()

int LastExpress::SoundQueue::getSubtitleFlag ( )
inline

Definition at line 84 of file queue.h.

◆ isBuffered() [1/2]

bool LastExpress::SoundQueue::isBuffered ( Common::String  filename,
bool  testForEntity = false 
)

Definition at line 249 of file queue.cpp.

◆ isBuffered() [2/2]

bool LastExpress::SoundQueue::isBuffered ( EntityIndex  entity)

Definition at line 245 of file queue.cpp.

◆ removeSubtitle()

void LastExpress::SoundQueue::removeSubtitle ( SubtitleEntry entry)
inline

Definition at line 74 of file queue.h.

◆ saveLoadWithSerializer()

void LastExpress::SoundQueue::saveLoadWithSerializer ( Common::Serializer ser)
overridevirtual

Implements Common::Serializable.

Definition at line 309 of file queue.cpp.

◆ setAmbientToSteam()

void LastExpress::SoundQueue::setAmbientToSteam ( )
inline

Definition at line 56 of file queue.h.

◆ setCurrentSubtitle()

void LastExpress::SoundQueue::setCurrentSubtitle ( SubtitleEntry entry)
inline

Definition at line 75 of file queue.h.

◆ setSubtitleFlag()

void LastExpress::SoundQueue::setSubtitleFlag ( int  flag)
inline

Definition at line 85 of file queue.h.

◆ startAmbient()

void LastExpress::SoundQueue::startAmbient ( )
inline

Definition at line 55 of file queue.h.

◆ stop() [1/2]

void LastExpress::SoundQueue::stop ( Common::String  filename)

Definition at line 75 of file queue.cpp.

◆ stop() [2/2]

void LastExpress::SoundQueue::stop ( EntityIndex  entity)

Definition at line 69 of file queue.cpp.

◆ stopAll()

void LastExpress::SoundQueue::stopAll ( )

Definition at line 164 of file queue.cpp.

◆ stopAllExcept()

void LastExpress::SoundQueue::stopAllExcept ( SoundTag  tag1,
SoundTag  tag2 = kSoundTagNone 
)

Definition at line 133 of file queue.cpp.

◆ stopAllSound()

void LastExpress::SoundQueue::stopAllSound ( )
protected

Definition at line 346 of file queue.cpp.

◆ stopAmbient()

void LastExpress::SoundQueue::stopAmbient ( )

Definition at line 115 of file queue.cpp.

◆ updateQueue()

void LastExpress::SoundQueue::updateQueue ( )

Definition at line 81 of file queue.cpp.

◆ updateSubtitles()

void LastExpress::SoundQueue::updateSubtitles ( )

Definition at line 261 of file queue.cpp.

Friends And Related Function Documentation

◆ Debugger

friend class Debugger
friend

Definition at line 110 of file queue.h.

Member Data Documentation

◆ _ambientState

int LastExpress::SoundQueue::_ambientState
private

Definition at line 97 of file queue.h.

◆ _currentSubtitle

SubtitleEntry* LastExpress::SoundQueue::_currentSubtitle
private

Definition at line 108 of file queue.h.

◆ _currentTag

int32 LastExpress::SoundQueue::_currentTag
private

Definition at line 98 of file queue.h.

◆ _engine

LastExpressEngine* LastExpress::SoundQueue::_engine
private

Definition at line 94 of file queue.h.

◆ _flag

uint32 LastExpress::SoundQueue::_flag
private

Definition at line 99 of file queue.h.

◆ _soundList

Common::List<SoundEntry *> LastExpress::SoundQueue::_soundList
private

List of all sound entries.

Definition at line 102 of file queue.h.

◆ _subtitles

Common::List<SubtitleEntry *> LastExpress::SoundQueue::_subtitles
private

Definition at line 107 of file queue.h.

◆ _subtitlesFlag

int LastExpress::SoundQueue::_subtitlesFlag
private

Definition at line 106 of file queue.h.


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