Auto-translated
Firstly, any music requires an ogg file, which should be placed in the music folder. Secondly, you need an xdb-type pointer called Music, which will contain the path to the music file (examples can be found in the developer files).
On the map, music can be taken from two places: the hero's music and the surface type music (grass, lava, etc.). In the first case, you only need to create a link to the file pointer in the AdventureMusic property of the hero's AdvMapHeroShared. The second case is the same, but the object type is AdvMapTile.
The music during battles is controlled by the TableRaceMusic.xdb file, specifically combatMusics and SiegeMusic. Each faction has its own tracks.