From cdba398d29b78256ca12d665ccc4c31c00ec2007 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 13 Apr 2013 16:06:35 +0200 Subject: Added music files cache --- src/sound/sound.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/sound/sound.h') 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 */ -- cgit v1.2.3-1-g7c22