aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/music.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab/music.h')
-rw-r--r--engines/lab/music.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/engines/lab/music.h b/engines/lab/music.h
index a6f836952c..857ea81569 100644
--- a/engines/lab/music.h
+++ b/engines/lab/music.h
@@ -69,8 +69,16 @@ private:
private:
void fillbuffer(byte *musicBuffer);
uint16 getPlayingBufferCount();
+
+ /**
+ * Pauses the background music.
+ */
void pauseBackMusic();
void readSound(bool waitTillFinished, Common::File *file);
+
+ /**
+ * Starts up the music initially.
+ */
void startMusic(bool restartFl);
public:
@@ -80,18 +88,54 @@ public:
public:
Music(LabEngine *vm);
+ /**
+ * Changes the background music to something else.
+ */
void changeMusic(const Common::String filename);
+
+ /**
+ * Checks the music that should be playing in a particular room.
+ */
void checkRoomMusic();
+
+ /**
+ * Frees up the music buffers and closes the file.
+ */
void freeMusic();
+
+ /**
+ * Initializes the music buffers.
+ */
bool initMusic(const Common::String filename);
bool isSoundEffectActive() const;
void playSoundEffect(uint16 sampleSpeed, uint32 length, Common::File *dataFile);
+
+ /**
+ * Reads in a music file. Ignores any graphics.
+ */
bool readMusic(const Common::String filename, bool waitTillFinished);
+
+ /**
+ * Changes the background music to the original piece playing.
+ */
void resetMusic();
+
+ /**
+ * Resumes the paused background music.
+ */
void resumeBackMusic();
+
+ /**
+ * Turns the music on and off.
+ */
void setMusic(bool on);
void setMusicReset(bool reset) { _doReset = reset; }
void stopSoundEffect();
+
+ /**
+ * Figures out which buffer is currently playing based on messages sent to
+ * it from the Audio device.
+ */
void updateMusic();
};