summaryrefslogtreecommitdiffstats
path: root/src/sound/sound.h
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-11-02 13:33:37 +0100
committerkrzys-h <krzys_h@interia.pl>2014-11-02 13:35:00 +0100
commit6d152d5aeedf8207897f751bfbd179d9994f39cf (patch)
treeff702f7992ca0c7149969194a35241eef6a3f283 /src/sound/sound.h
parentec4b71eca2466004636a55f5bd4ab9e524e803c3 (diff)
downloadcolobot-6d152d5aeedf8207897f751bfbd179d9994f39cf.tar.gz
colobot-6d152d5aeedf8207897f751bfbd179d9994f39cf.tar.bz2
colobot-6d152d5aeedf8207897f751bfbd179d9994f39cf.zip
Fixed console spam when music files are not installed
Closes #359
Diffstat (limited to 'src/sound/sound.h')
-rw-r--r--src/sound/sound.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sound/sound.h b/src/sound/sound.h
index 2ed4199..20f459c 100644
--- a/src/sound/sound.h
+++ b/src/sound/sound.h
@@ -180,6 +180,18 @@ public:
* \return return true on success
*/
virtual bool CacheMusic(const std::string &bFile);
+
+ /** Function to check if sound effect file was cached.
+ * \param bSound - id of a sound effect file
+ * \return return true if the file was cached
+ */
+ virtual bool IsCached(Sound bSound);
+
+ /** Function called to check if music file was cached.
+ * \param bFile - file to check
+ * \return return true if the file was cached
+ */
+ virtual bool IsCachedMusic(const std::string &bFile);
/** Return if plugin is enabled
* \return return true if plugin is enabled