------------
- Vorbis OGG -q4 or above (-q7 or above preferred), or a format good enough for being able to be converted to that (e.g. FLAC, WAV)
-- GPL v2 compatible _(for more information see our [[legal]] page)_
+- GPL v2 compatible _(for more information see our [legal](legal) page)_
- About 3 to 10 minutes
- Preferably with matching ending and beginning _(so the track loops smoothly)_
In spite of having longer tracks its more than likely that a track gets played at two or more times during a match, for this is important that the end and beginning of the track can be matched without disruptions, giving a sense of continuity.
-For this the ideal way is to find a start and end sample index, so that that region is perfectly (clickless) loopable. These can be set as LOOP\_START and LOOP\_END tags in the Vorbis file, and the engine will seek back to LOOP\_START when reaching LOOP\_END.
+For this the ideal way is to find a start and end sample index, so that that region is perfectly (clickless) loopable. These can be set as LOOP\_START and LOOP\_END tags in the Vorbis file, and the engine will seek back to LOOP\_START when reaching LOOP\_END. Here's the [thread](http://forums.xonotic.org/showthread.php?tid=359&pid=5602#pid5602) with details, as well as a [video](https://www.youtube.com/watch?v=ZwWZH5cYTCU).
### Complexity
-----
- Licensing
- - Our [[Legal]] wiki page
+ - Our [Legal](Legal) wiki page
- http://wiki.creativecommons.org/GarageBand
- Tools
- OpenMPT http://www.lpchip.com/modplug
**How to add a sound track to Xonotic?**
- Copy the track file to the `data/sound/cdtracks` folder
-- Add the name of the track (without the extension) at the end of the cvar `g_cdtracks_remaplist`, on the file `defaultXonotic.cfg`. Count all tracks and remember the position of the added one, this information will be used on the following step.
+- Add the name of the track (without the extension) at the end of the cvar `g_cdtracks_remaplist`, in the file `xonotic-common.cfg`. Count all tracks and remember the position of the added one, this information will be used on the following step.
- Open the file `<name of map>.mapinfo` (on `data/xonotic-maps.pk3dir/maps`) and add a line with the text `cd loop x`. This `x` should be the position of the track within the cvar `g_cdtracks_remaplist`.
**How to add a sound track to a non official map?**
- Copy the track to the folder `sound/cdtracks/` (inside the pk3 file)
- Open the file `<name of map>.mapinfo` and add a line with the text `cd loop <track filename>`
-