[Scummvm-cvs-logs] CVS: scummvm/scumm music.h,2.7,2.8

Max Horn fingolfin at users.sourceforge.net
Thu Oct 2 18:16:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv11566

Modified Files:
	music.h 
Log Message:
some doxygen

Index: music.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/music.h,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -d -r2.7 -r2.8
--- music.h	3 Oct 2003 01:07:35 -0000	2.7
+++ music.h	3 Oct 2003 01:15:31 -0000	2.8
@@ -26,19 +26,62 @@
 #include "common/scummsys.h"
 #include "common/system.h"
 
+/**
+ * Pure virtual base class for the various music/sound engines used in Scumm
+ * games. In particular, the iMuse code provides a subclass of this. There are
+ * several other subclasses providing music and sound capabilities for
+ * several Scumm games.
+ * Having this base class for all music engines allows uniform access to the
+ * core music/sound functionality, thus simplifying the client code.
+ *
+ * Instantiated by class Scumm.
+ */
 class MusicEngine {
 public:
 	virtual ~MusicEngine() {}
 
+	/**
+	 * Set the output volume.
+	 * @param the new output volume
+	 */
 	virtual void setMasterVolume(int vol) = 0;
 
+	/**
+	 * Start playing the sound with the given id.
+	 * @param sound	the sound to start
+	 */
 	virtual void startSound(int sound) = 0;
+
+	/**
+	 * Stop playing the sound with the given id.
+	 * @param sound	the sound to stop
+	 */
 	virtual void stopSound(int sound) = 0;
+
+	/**
+	 * Start playing all currently playing sounds.
+	 */
 	virtual void stopAllSounds() = 0;
+
+	/**
+	 * Query the status of the sound with the given id. Usually this is just
+	 * a boolean telling us whether the sound is playing or not.
+	 * @param sound	the sound to for which we want the status
+	 * @return the status of the specified sound
+	 */
 	virtual int  getSoundStatus(int sound) const = 0;
 
+	/**
+	 * Get the value of the music timer. Used for synchronising scripts with
+	 * the music/sound.
+	 * @return the music timer
+	 */
 	virtual int  getMusicTimer() const { return 0; }
 
+	/**
+	 * Terminate the music engine. Called just before the music engine
+	 * is deleted.
+	 */
 	virtual void terminate() {}
 };
 





More information about the Scummvm-git-logs mailing list