ScummVM API documentation
Sci::SoundCommandParser Class Reference

Public Member Functions

 SoundCommandParser (ResourceManager *resMan, SegManager *segMan, Kernel *kernel, AudioPlayer *audio, SciVersion soundVersion)
 
void clearPlayList ()
 
void syncPlayList (Common::Serializer &s)
 
void reconstructPlayList ()
 
void setMasterVolume (int vol)
 
void pauseAll (bool pause)
 
void resetGlobalPauseCounter ()
 
bool isGlobalPauseActive () const
 
void startNewSound (int number)
 
void stopAllSounds ()
 
void stopAllSamples ()
 
void printPlayList (Console *con)
 
void printSongInfo (reg_t obj, Console *con)
 
void processPlaySound (reg_t obj, bool playBed, bool restoring=false)
 
void processStopSound (reg_t obj, bool sampleFinishedPlaying)
 
void initSoundResource (MusicEntry *newSound)
 
MusicType getMusicType () const
 
ResourceType getSoundResourceType (const uint16 resourceNo) const
 
void updateSci0Cues ()
 
reg_t kDoSoundInit (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundPlay (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundMute (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundPause (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundResumeAfterRestore (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundStop (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundStopAll (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundDispose (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundMasterVolume (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundFade (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundGetPolyphony (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundUpdate (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundUpdateCues (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundSendMidi (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundGlobalReverb (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundSetHold (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundGetAudioCapability (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundSetVolume (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundSetPriority (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundSetLoop (EngineState *s, int argc, reg_t *argv)
 
reg_t kDoSoundSuspend (EngineState *s, int argc, reg_t *argv)
 

Member Function Documentation

◆ updateSci0Cues()

void Sci::SoundCommandParser::updateSci0Cues ( )

Synchronizes the current state of the music list to the rest of the engine, so that the changes that the sound thread makes to the music are registered with the engine scripts. In SCI0, we invoke this from kAnimate (which is called very often). SCI01 and later have a specific callback function, cmdUpdateCues, which is called regularly by the engine scripts themselves, so the engine itself polls for changes to the music


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