mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Sound loading from memory (by using a quick hack)
This commit is contained in:
parent
a9a923e4da
commit
db0928add3
2 changed files with 13 additions and 28 deletions
25
src/game.cpp
25
src/game.cpp
|
@ -972,31 +972,6 @@ void the_game(
|
|||
SoundMaker soundmaker(sound, nodedef);
|
||||
soundmaker.registerReceiver(&eventmgr);
|
||||
|
||||
// Preload sounds
|
||||
#if 0
|
||||
sound->loadSound("default_grass_footstep", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_grass_walk1.ogg");
|
||||
sound->loadSound("default_grass_footstep", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_grass_walk2.ogg");
|
||||
sound->loadSound("default_grass_footstep", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_grass_walk3.ogg");
|
||||
|
||||
sound->loadSound("default_dig_crumbly", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_dig_crumbly1.ogg");
|
||||
sound->loadSound("default_dig_crumbly", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_dig_crumbly2.ogg");
|
||||
|
||||
sound->loadSound("default_dig_cracky", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_dig_cracky1.ogg");
|
||||
|
||||
sound->loadSound("default_place_node", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_place_node1.ogg");
|
||||
sound->loadSound("default_place_node", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_place_node2.ogg");
|
||||
sound->loadSound("default_place_node", porting::path_share + DIR_DELIM
|
||||
+ "sounds" + DIR_DELIM + "default_place_node3.ogg");
|
||||
#endif
|
||||
|
||||
// Add chat log output for errors to be shown in chat
|
||||
LogOutputBuffer chat_log_error_buf(LMT_ERROR);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue