summaryrefslogtreecommitdiffstats
path: root/src/sound/sound.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/sound.h')
-rw-r--r--src/sound/sound.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sound/sound.h b/src/sound/sound.h
index f101518..9d0e9a0 100644
--- a/src/sound/sound.h
+++ b/src/sound/sound.h
@@ -178,6 +178,8 @@ class CSoundInterface
/** Function called to add all music files to list */
inline void AddMusicFiles(std::string path) {
m_soundPath = path;
+ CacheMusic("sound010.ogg");
+ CacheMusic("sound011.ogg");
};
/** Function called to cache sound effect file.
@@ -188,6 +190,13 @@ class CSoundInterface
*/
inline virtual bool Cache(Sound bSound, std::string bFile) { return true; };
+ /** Function called to cache music file.
+ * This function is called by CRobotMain for each file used in the mission.
+ * \param bFile - file to load
+ * \return return true on success
+ */
+ inline virtual bool CacheMusic(std::string bFile) { return true; };
+
/** Return if plugin is enabled
* \return return true if plugin is enabled
*/