summaryrefslogtreecommitdiff
path: root/src/soundmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-14 02:21:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-14 02:21:30 +0300
commit78afa659472cc4cfca37056088ed9cb9f79845eb (patch)
tree82396c65956514c58fdd696dc71e7400bb6d1379 /src/soundmanager.h
parentee1fc0b63cb7f27df85c43474497b805df6e31f5 (diff)
downloadmv-78afa659472cc4cfca37056088ed9cb9f79845eb.tar.gz
mv-78afa659472cc4cfca37056088ed9cb9f79845eb.tar.bz2
mv-78afa659472cc4cfca37056088ed9cb9f79845eb.tar.xz
mv-78afa659472cc4cfca37056088ed9cb9f79845eb.zip
Remove default parameters from soundmanager.
Diffstat (limited to 'src/soundmanager.h')
-rw-r--r--src/soundmanager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/soundmanager.h b/src/soundmanager.h
index f4dca4cd1..beaa48085 100644
--- a/src/soundmanager.h
+++ b/src/soundmanager.h
@@ -89,7 +89,7 @@ class SoundManager final : public ConfigListener
*
* @param ms Duration of fade-out effect (ms)
*/
- void fadeOutMusic(const int ms = 1000);
+ void fadeOutMusic(const int ms);
/**
* Fades out a background music and play a new one.
@@ -98,7 +98,7 @@ class SoundManager final : public ConfigListener
* @param ms Duration of fade-out effect (ms)
*/
void fadeOutAndPlayMusic(const std::string &fileName,
- const int ms = 1000);
+ const int ms);
constexpr static int getMaxVolume() A_WARN_UNUSED
{ return MIX_MAX_VOLUME; }
@@ -112,8 +112,9 @@ class SoundManager final : public ConfigListener
*
* @param path The resource path to the sound file.
*/
- void playSfx(const std::string &path, const int x = 0,
- const int y = 0) const;
+ void playSfx(const std::string &path,
+ const int x,
+ const int y) const;
/**
* Plays an item for gui.