better sound for splash effect
authorTobias Markus <tobbi@mozilla-uk.org>
Wed, 4 Mar 2015 21:49:57 +0000 (22:49 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Wed, 4 Mar 2015 21:51:09 +0000 (22:51 +0100)
data/AUTHORS
data/sounds/splash.wav [new file with mode: 0644]
src/badguy/badguy.cpp
src/object/player.cpp

index b6c3223..85fe5dc 100644 (file)
@@ -92,6 +92,7 @@ These are just more code.
 * shoot.wav - added Fri May 14 05:24:24 2004 UTC by sik0fewl. Message was "added sounds from Nathan McCoy" -sommer 22:43, 4 Jan 2007 (CET)\r
 * skid.wav - replaced with a self-made sound by wansti\r
 * splash.ogg - self-made by WolfgangB GPLv2+CC-by-sa\r
+* splash.wav - sound created by soundscalpel.com, licensed under CC-by http://freesound.org/people/soundscalpel.com/sounds/110393/\r
 * squish.wav - replaced with a self-made sound by Some_Person\r
 * stomp.wav - replaced with a self-made sound by Some_Person\r
 * switch.ogg - self-made by WolfgangB GPLv2+CC-by-sa\r
diff --git a/data/sounds/splash.wav b/data/sounds/splash.wav
new file mode 100644 (file)
index 0000000..d429546
Binary files /dev/null and b/data/sounds/splash.wav differ
index cc0638e..888694e 100644 (file)
@@ -55,7 +55,7 @@ BadGuy::BadGuy(const Vector& pos, const std::string& sprite_name_, int layer_) :
 
   SoundManager::current()->preload("sounds/squish.wav");
   SoundManager::current()->preload("sounds/fall.wav");
-  SoundManager::current()->preload("sounds/splash.ogg");
+  SoundManager::current()->preload("sounds/splash.wav");
 
   dir = (start_dir == AUTO) ? LEFT : start_dir;
 }
@@ -83,7 +83,7 @@ BadGuy::BadGuy(const Vector& pos, Direction direction, const std::string& sprite
 
   SoundManager::current()->preload("sounds/squish.wav");
   SoundManager::current()->preload("sounds/fall.wav");
-  SoundManager::current()->preload("sounds/splash.ogg");
+  SoundManager::current()->preload("sounds/splash.wav");
 
   dir = (start_dir == AUTO) ? LEFT : start_dir;
 }
@@ -118,7 +118,7 @@ BadGuy::BadGuy(const Reader& reader, const std::string& sprite_name_, int layer_
 
   SoundManager::current()->preload("sounds/squish.wav");
   SoundManager::current()->preload("sounds/fall.wav");
-  SoundManager::current()->preload("sounds/splash.ogg");
+  SoundManager::current()->preload("sounds/splash.wav");
 
   dir = (start_dir == AUTO) ? LEFT : start_dir;
 }
@@ -242,7 +242,7 @@ BadGuy::collision_tile(uint32_t tile_attributes)
   if(tile_attributes & Tile::WATER && !is_in_water())
   {
     in_water = true;
-    SoundManager::current()->play("sounds/splash.ogg", get_pos());
+    SoundManager::current()->play("sounds/splash.wav", get_pos());
   }
   if(!(tile_attributes & Tile::WATER) && is_in_water())
   {
index f661134..7aa2004 100644 (file)
@@ -185,7 +185,7 @@ Player::Player(PlayerStatus* _player_status, const std::string& name_) :
   SoundManager::current()->preload("sounds/skid.wav");
   SoundManager::current()->preload("sounds/flip.wav");
   SoundManager::current()->preload("sounds/invincible_start.ogg");
-  SoundManager::current()->preload("sounds/splash.ogg");
+  SoundManager::current()->preload("sounds/splash.wav");
 
   init();
 }
@@ -1336,7 +1336,7 @@ Player::collision_tile(uint32_t tile_attributes)
     if( tile_attributes & Tile::WATER ){
       swimming = true;
       no_water = false;
-      SoundManager::current()->play( "sounds/splash.ogg" );
+      SoundManager::current()->play( "sounds/splash.wav" );
     }
   }
 #endif