Difference between revisions of "Sound Packs"

From Minetest Wiki
Jump to navigation Jump to search
m (Update line of code for "See also" section)
 
(14 intermediate revisions by 7 users not shown)
Line 1: Line 1:
== Description ==
+
Minetest supports sound packs, which are client provided sound files that can provide or override sounds in the game. They can also be used to reduce the amount of media which needs to become loaded. If the server does not have specific sounds, the sounds in the client side "sounds" folder (if present) instead of the ones of the server are used, so the sounds do not need to become loaded from the server.
Sound Packs can be used to reduce the amount of Media which needs to become loaded. If the server does not have specific sounds, the sounds in the testsounds folder instead of the ones of the server are used, so the sounds do not need to become loaded from the server.
 
 
 
<br/>
 
  
 
== Installation ==
 
== Installation ==
Currently sound packs can be stored at the [[Folder_structures#global_path | shared path]] of minetest, not at the user path. And the sounds need to be put into a folder called "testsounds".<br/>
+
Currently sound packs can be stored at the shared path of minetest, not at the user path. And the sounds need to be put into a folder called "sounds".<br/>
eg. <code>/usr/share/minetest/testsounds/craw.ogg</code><br/>
+
eg. <code>/usr/share/minetest/sounds/craw.ogg</code><br/>
 
The sound pack path might be configurable soon.
 
The sound pack path might be configurable soon.
  
Of course, you can also link the testsounds folder that you don't need to change the rights of your global minetest folder.<br/>
+
Of course, you can also link the sounds folder that you don't need to change the rights of your global minetest folder.<br/>
 
e.g.<br/>
 
e.g.<br/>
$ sudo ln -r -s ~/.minetest/testsounds /usr/share/minetest/testsounds
+
$ sudo ln -r -s ~/.minetest/ingame_sounds /usr/share/minetest/sounds
  
 +
== For Technic ==
 +
If you want to use the music box of technic, you usually need to put the tracks into the sounds folder. You can easily download them automatically using following command(s):
  
If you want to use the music box of technic, you usually need to put the tracks into the testsounds folder.<br/>
+
1. ensure that you are in the right folder, e.g.
You can easily download them automatically using following command(s):<br/>
+
 
1. ensure that you are in the right folder, e.g.<br/>
+
cd ~/.minetest/ingame_sounds
$ cd ~/.minetest/testsounds
 
  
 
2. Download them all at once (parallel) using curl:<br/>
 
2. Download them all at once (parallel) using curl:<br/>
$ for i in {1..9}; do if [ ! -e technic_track${i}.ogg ]; then curl -s https://raw.githubusercontent.com/minetest-technic/technic_game/master/mods/ambience/sounds/technic_track${i}.ogg > technic_track${i}.ogg; fi & done
 
  
<br/>
+
for i in {1..9}; do if [ ! -e technic_track${i}.ogg ]; then curl -s https://raw.githubusercontent.com/minetest-technic/technic_game/master/mods/ambience/sounds/technic_track${i}.ogg > technic_track${i}.ogg; fi & done
  
 
== See also ==
 
== See also ==
[https://github.com/minetest/minetest/blob/master/src/game.cpp#L778 Is the folder still called "testsounds"?]
+
* [https://github.com/minetest/minetest/blob/6f641df/src/game.cpp#L568-L594 Implementation in the source code] (as of April 13, 2017)
 
+
* [[Texture Packs]]
  
{{Incomplete}}
 
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]
 +
[[Category:Gameplay]]

Latest revision as of 14:45, 5 September 2023

Minetest supports sound packs, which are client provided sound files that can provide or override sounds in the game. They can also be used to reduce the amount of media which needs to become loaded. If the server does not have specific sounds, the sounds in the client side "sounds" folder (if present) instead of the ones of the server are used, so the sounds do not need to become loaded from the server.

Installation

Currently sound packs can be stored at the shared path of minetest, not at the user path. And the sounds need to be put into a folder called "sounds".
eg. /usr/share/minetest/sounds/craw.ogg
The sound pack path might be configurable soon.

Of course, you can also link the sounds folder that you don't need to change the rights of your global minetest folder.
e.g.
$ sudo ln -r -s ~/.minetest/ingame_sounds /usr/share/minetest/sounds

For Technic

If you want to use the music box of technic, you usually need to put the tracks into the sounds folder. You can easily download them automatically using following command(s):

1. ensure that you are in the right folder, e.g.

cd ~/.minetest/ingame_sounds

2. Download them all at once (parallel) using curl:

for i in {1..9}; do if [ ! -e technic_track${i}.ogg ]; then curl -s https://raw.githubusercontent.com/minetest-technic/technic_game/master/mods/ambience/sounds/technic_track${i}.ogg > technic_track${i}.ogg; fi & done

See also