diff options
author | krzys-h <krzys_h@interia.pl> | 2013-04-13 16:06:35 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-04-13 16:34:52 +0200 |
commit | cdba398d29b78256ca12d665ccc4c31c00ec2007 (patch) | |
tree | 78baa11a65bd67246d7c6ef5d1704ba4e027b15b /src/sound/sound.h | |
parent | e3b92fb9d842af19f40777dc6764204100c926da (diff) | |
download | colobot-cdba398d29b78256ca12d665ccc4c31c00ec2007.tar.gz colobot-cdba398d29b78256ca12d665ccc4c31c00ec2007.tar.bz2 colobot-cdba398d29b78256ca12d665ccc4c31c00ec2007.zip |
Added music files cache
Diffstat (limited to 'src/sound/sound.h')
-rw-r--r-- | src/sound/sound.h | 9 |
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 */ |