From: Christoph Sommer Date: Sun, 6 Jan 2008 02:46:38 +0000 (+0000) Subject: preload sounds X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=691335a74a0717e839f440c6151f1517cf89548d;p=supertux.git preload sounds SVN-Revision: 5256 --- diff --git a/src/badguy/willowisp.cpp b/src/badguy/willowisp.cpp index cc50d6bcd..bc70de8e3 100644 --- a/src/badguy/willowisp.cpp +++ b/src/badguy/willowisp.cpp @@ -59,6 +59,7 @@ WillOWisp::WillOWisp(const lisp::Lisp& reader) countMe = false; sound_manager->preload(SOUNDFILE); + sound_manager->preload("sounds/warp.wav"); } void diff --git a/src/object/player.cpp b/src/object/player.cpp index dc484c529..978e07355 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -147,6 +147,7 @@ Player::Player(PlayerStatus* _player_status, const std::string& name) sound_manager->preload("sounds/flip.wav"); sound_manager->preload("sounds/invincible.wav"); sound_manager->preload("sounds/splash.ogg"); + sound_manager->preload("sounds/shoot.wav"); init(); } diff --git a/src/player_status.cpp b/src/player_status.cpp index 72111e6d4..4bed7dfcb 100644 --- a/src/player_status.cpp +++ b/src/player_status.cpp @@ -49,6 +49,8 @@ PlayerStatus::PlayerStatus() reset(); coin_surface.reset(new Surface("images/engine/hud/coins-0.png")); + sound_manager->preload("sounds/coin.wav"); + sound_manager->preload("sounds/lifeup.wav"); } PlayerStatus::~PlayerStatus() diff --git a/src/worldmap/worldmap.cpp b/src/worldmap/worldmap.cpp index 2f5d3aa50..e25c1628b 100644 --- a/src/worldmap/worldmap.cpp +++ b/src/worldmap/worldmap.cpp @@ -169,6 +169,8 @@ WorldMap::WorldMap(const std::string& filename, const std::string& force_spawnpo sq_addref(global_vm, &worldmap_table); sq_pop(global_vm, 1); + + sound_manager->preload("sounds/warp.wav"); // load worldmap objects load(filename);