ScummVM API documentation
Scumm::Player_V2Base Class Reference

#include <player_v2base.h>

Inheritance diagram for Scumm::Player_V2Base:
Scumm::MusicEngine Common::Serializable Scumm::Player_V2 Scumm::Player_V2CMS Scumm::Player_V1

Classes

union  ChannelInfo
 

Public Member Functions

 Player_V2Base (ScummEngine *scumm, bool pcjr)
 
int getMusicTimer () override
 
- Public Member Functions inherited from Scumm::MusicEngine
virtual void setMusicVolume (int vol)=0
 
virtual void setSfxVolume (int vol)
 
virtual void startSound (int sound)=0
 
virtual void startSoundWithTrackID (int sound, int track)
 
virtual void stopSound (int sound)=0
 
virtual void stopAllSounds ()=0
 
virtual int getSoundStatus (int sound) const =0
 
virtual void setQuality (int qual)
 
virtual void toggleMusic (bool enable)
 
virtual void toggleSoundEffects (bool enable)
 
void saveLoadWithSerializer (Common::Serializer &ser) override
 
virtual void restoreAfterLoad ()
 

Protected Member Functions

virtual void nextTick ()
 
virtual void clear_channel (int i)
 
virtual void chainSound (int nr, byte *data)
 
virtual void chainNextSound ()
 
void execute_cmd (ChannelInfo *channel)
 
void next_freqs (ChannelInfo *channel)
 

Protected Attributes

bool _isV3Game
 
ScummEngine_vm
 
bool _pcjr
 
int _header_len
 
int _current_nr
 
byte * _current_data
 
int _next_nr
 
byte * _next_data
 
byte * _retaddr
 
ChannelInfo _channels [5]
 

Detailed Description

Common base class for Player_V2 and Player_V2CMS.

Member Function Documentation

◆ getMusicTimer()

int Scumm::Player_V2Base::getMusicTimer ( )
overridevirtual

Get the value of the music timer. Used for synchronising scripts with the music/sound.

Returns
the music timer

Reimplemented from Scumm::MusicEngine.

Reimplemented in Scumm::Player_V2CMS.


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