ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Lab::Music Class Reference

Public Member Functions

 Music (LabEngine *vm)
 
void changeMusic (const Common::String &filename, bool storeCurPos, bool seektoStoredPos)
 
void resetMusic (bool seekToStoredPos)
 
void checkRoomMusic (uint16 prevRoom, uint16 newRoom)
 
void freeMusic ()
 
bool isSoundEffectActive () const
 
void playSoundEffect (uint16 sampleSpeed, uint32 length, bool loop, Common::File *dataFile)
 
void loadSoundEffect (const Common::String &filename, bool loop, bool waitTillFinished)
 
void stopSoundEffect ()
 

Member Function Documentation

◆ changeMusic()

void Lab::Music::changeMusic ( const Common::String filename,
bool  storeCurPos,
bool  seektoStoredPos 
)

Changes the background music to something else.

◆ checkRoomMusic()

void Lab::Music::checkRoomMusic ( uint16  prevRoom,
uint16  newRoom 
)

Checks the music that should be playing in a particular room.

◆ freeMusic()

void Lab::Music::freeMusic ( )

Frees up the music buffers and closes the file.

◆ loadSoundEffect()

void Lab::Music::loadSoundEffect ( const Common::String filename,
bool  loop,
bool  waitTillFinished 
)

Reads in a sound effect file. Ignores any graphics.


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