Age of Empires sounds

.drs message board

Everyone can replace the taunts on Age of Empires, but the sound effects cannot be replaced easily since they are encoded in the file sounds.drs. I have found out pretty much about the header, together with Steve.

Steve has made the first step in decoding the .drs format:

Like others, I'm interested in bringing War2 (and maybe UO) unit sounds into AoE. I've started reverse-engineering the Sounds.DRS file and have found the following:

The file is 1804 (0x070c) bytes of header information (I haven't decoded yet), followed by what is essentially 144 concatenated Wav files. The Wav files pretty much follow the standard Microsoft specs for header info, etc. Looking through them reveals that they are all monaural. Most are 16-bit (I think 1 is 8-bit). They vary widely in sample rate, including 8K, 11.025K, 16K and 22.050K sample rates.

I'm pretty confident that I could extract all 144 sounds into individual Wav files at this point (there's only one RIFF chunk, the "LIST" chunk, which I'm still trying to figure out, but it's irrelevant for extracting the sounds).

I have also set up a message board so people can share their knowledge about the .drs file format. The information for every file seems to be encoded in 12 bytes per file in the header. There are 144 (0x0090) such mini-headers.

Hex dump of sound.drs (first 1824 bytes)

00000000 436F 7079 7269 6768 7420 2863 2920 3139 Copyright (c) 19
00000010 3937 2045 6E73 656D 626C 6520 5374 7564 97 Ensemble Stud
00000020 696F 732E 1A00 0000 312E 3030 7472 6962 ios.....1.00trib
00000030 6500 0000 0000 0000 0100 0000 0C07 0000 e...............
00000040 2076 6177 4C00 0000 9000 0000 8813 0000  vawL...........

The format of the header is:
40 bytes	string	CopyrightInfo
4 bytes		string	File version (1.00)
12 bytes	string	File type "tribe"
4 bytes		Unknown?
4 bytes		long	DRS HeaderLength (1804 bytes = 0x070c)
8 bytes		Unknown?
4 bytes		long	Number of sounds (144 = 0x90)
1728 bytes	Array	Sounds lookup table

00000050 0C07 0000 D2ED 0000 8A13 0000 DEF4 0000 ................

The first mini header starts at 0x004C.
4 bytes		long	Sound ID number (unique to each sound, starting at 5000)
4 bytes		long	Offset to the start of the embedded Wav file
4 bytes		long	Length of the embedded Wav file

dump at 070C (wave header):
0000070C 5249 4646 CAED 0000 5741 5645 666D 7420 RIFF....WAVEfmt 

00000060 64B0 0000 8B13 0000 42A5 0100 4884 0000 d.......B...H...
00000070 8C13 0000 8A29 0200 C866 0000 8D13 0000 .....)...f......
00000080 5290 0200 1053 0000 8E13 0000 62E3 0200 R....S......b...
00000090 E858 0000 8F13 0000 4A3C 0300 5834 0000 .X......J<..X4..
000000A0 9013 0000 A270 0300 C89D 0000 9113 0000 .....p..........
000000B0 6A0E 0400 E629 0000 9213 0000 5038 0400 j....)......P8..
000000C0 F041 0000 9313 0000 407A 0400 4039 0000 .A......@z..@9..
000000D0 9413 0000 80B3 0400 0039 0000 9513 0000 .........9......
000000E0 80EC 0400 32A1 0000 9613 0000 B28D 0500 ....2...........
000000F0 9EEC 0000 9813 0000 507A 0600 6286 0000 ........Pz..b...
00000100 9913 0000 B200 0700 F8A5 0000 9A13 0000 ................
00000110 AAA6 0700 B027 0000 9B13 0000 5ACE 0700 .....'......Z...
00000120 B027 0000 9C13 0000 0AF6 0700 B027 0000 .'...........'..
00000130 9D13 0000 BA1D 0800 8427 0000 9E13 0000 .........'......
00000140 3E45 0800 2EC4 0000 A313 0000 6C09 0900 >E..........l...
00000150 E4F8 0000 A413 0000 5002 0A00 BC71 0000 ........P....q..
00000160 A513 0000 0C74 0A00 34C3 0000 A613 0000 .....t..4.......
00000170 4037 0B00 3AC5 0000 A813 0000 7AFC 0B00 @7..:.......z...
00000180 EC0A 0000 AB13 0000 6607 0C00 D4AA 0000 ........f.......
00000190 AC13 0000 3AB2 0C00 1E8B 0000 AD13 0000 ....:...........
000001A0 583D 0D00 0633 0000 AE13 0000 5E70 0D00 X=...3......^p..
000001B0 2CA8 0000 AF13 0000 8A18 0E00 22A8 0000 ,..........."...
000001C0 B013 0000 ACC0 0E00 0CA8 0000 B113 0000 ................
000001D0 B868 0F00 10AA 0000 B213 0000 C812 1000 .h..............
000001E0 044C 0000 B313 0000 CC5E 1000 A8C3 0000 .L.......^......
000001F0 B413 0000 7422 1100 D849 0000 B513 0000 ....t"...I......
00000200 4C6C 1100 8035 0000 B813 0000 CCA1 1100 Ll...5..........
00000210 2C1E 0000 BA13 0000 F8BF 1100 34C3 0000 ,...........4...
00000220 BB13 0000 2C83 1200 2CBB 0000 BC13 0000 ....,...,.......
00000230 583E 1300 D00D 0000 BD13 0000 284C 1300 X>..........(L..
00000240 F26D 0000 BE13 0000 1ABA 1300 A249 0000 .m...........I..
00000250 BF13 0000 BC03 1400 565A 0000 C013 0000 ........VZ......
00000260 125E 1400 6A9F 0000 C113 0000 7CFD 1400 .^..j.......|...
00000270 9EA0 0000 C213 0000 1A9E 1500 FC6B 0000 .............k..
00000280 C313 0000 160A 1600 8680 0000 C413 0000 ................
00000290 9C8A 1600 7894 0000 C513 0000 141F 1700 ....x...........
000002A0 A4AB 0000 C613 0000 B8CA 1700 965C 0000 .............\..
000002B0 C713 0000 4E27 1800 0262 0000 C813 0000 ....N'...b......
000002C0 5089 1800 B2A3 0000 C913 0000 022D 1900 P............-..
000002D0 707B 0000 CE13 0000 72A8 1900 A63C 0000 p{......r....<..
000002E0 CF13 0000 18E5 1900 B476 0000 D013 0000 .........v......
000002F0 CC5B 1A00 D866 0000 D213 0000 A4C2 1A00 .[...f..........
00000300 F4A6 0000 D313 0000 9869 1B00 645B 0000 .........i..d[..
00000310 D413 0000 FCC4 1B00 0255 0000 D513 0000 .........U......
00000320 FE19 1C00 42C1 0000 D613 0000 40DB 1C00 ....B.......@...
00000330 82C1 0000 D713 0000 C29C 1D00 7EC1 0000 ............~...
00000340 D813 0000 405E 1E00 5208 0000 D913 0000 ....@^..R.......
00000350 9266 1E00 D2ED 0000 DA13 0000 6454 1F00 .f..........dT..
00000360 D2ED 0000 DB13 0000 3642 2000 C6B6 0000 ........6B .....
00000370 DC13 0000 FCF8 2000 0D07 0000 DD13 0000 ...... .........
00000380 0900 2100 9A72 0000 E413 0000 A372 2100 ..!..r.......r!.
00000390 20C5 0000 E513 0000 C337 2200 267F 0000  ........7".&...
000003A0 E813 0000 E9B6 2200 7236 0000 EC13 0000 ......".r6......
000003B0 5BED 2200 7E20 0000 EE13 0000 D90D 2300 [.".~ ........#.
000003C0 1036 0000 EF13 0000 E943 2300 907D 0000 .6.......C#..}..
000003D0 F013 0000 79C1 2300 3049 0000 F113 0000 ....y.#.0I......
000003E0 A90A 2400 F041 0000 F213 0000 994C 2400 ..$..A.......L$.
000003F0 223C 0000 F313 0000 BB88 2400 AE07 0000 "<........$.....
00000400 F413 0000 6990 2400 988D 0000 F513 0000 ....i.$.........
00000410 011E 2500 4463 0000 F713 0000 4581 2500 ..%.Dc......E.%.
00000420 7E58 0000 F813 0000 C3D9 2500 58A7 0000 ~X........%.X...
00000430 F913 0000 1B81 2600 742F 0000 FC13 0000 ......&.t/......
00000440 8FB0 2600 52B4 0000 FE13 0000 E164 2700 ..&.R........d'.
00000450 C657 0000 0014 0000 A7BC 2700 7A7E 0000 .W........'.z~..
00000460 0114 0000 213B 2800 4ABE 0000 0214 0000 ....!;(.J.......
00000470 6BF9 2800 70BD 0000 0314 0000 DBB6 2900 k.(.p.........).
00000480 C69B 0000 0514 0000 A152 2A00 0E07 0000 .........R*.....
00000490 0614 0000 AF59 2A00 7495 0000 0814 0000 .....Y*.t.......
000004A0 23EF 2A00 1C90 0000 0914 0000 3F7F 2B00 #.*.........?.+.
000004B0 B085 0000 0C14 0000 EF04 2C00 72C7 0000 ..........,.r...
000004C0 0D14 0000 61CC 2C00 7875 0000 0E14 0000 ....a.,.xu......
000004D0 D941 2D00 06A6 0000 0F14 0000 DFE7 2D00 .A-...........-.
000004E0 C08B 0000 1214 0000 9F73 2E00 900F 0000 .........s......
000004F0 1314 0000 2F83 2E00 8E0F 0000 1414 0000 ..../...........
00000500 BD92 2E00 1844 0000 1614 0000 D5D6 2E00 .....D..........
00000510 AAB1 0000 1714 0000 7F88 2F00 E656 0000 ........../..V..
00000520 1814 0000 65DF 2F00 B0B9 0000 1C14 0000 ....e./.........
00000530 1599 3000 3666 0100 2614 0000 4BFF 3100 ..0.6f..&...K.1.
00000540 4E3D 0000 2714 0000 993C 3200 AE28 0000 N=..'....<2..(..
00000550 2A14 0000 4765 3200 267E 0000 2C14 0000 *...Ge2.&~..,...
00000560 6DE3 3200 5A79 0000 2D14 0000 C75C 3300 m.2.Zy..-....\3.
00000570 86C1 0000 2E14 0000 4D1E 3400 ECC6 0000 ........M.4.....
00000580 2F14 0000 39E5 3400 124E 0000 3114 0000 /...9.4..N..1...
00000590 4B33 3500 FEB9 0000 3314 0000 49ED 3500 K35.....3...I.5.
000005A0 8840 0000 3514 0000 D12D 3600 9048 0000 .@..5....-6..H..
000005B0 3814 0000 6176 3600 9A40 0000 3914 0000 8...av6..@..9...
000005C0 FBB6 3600 FAC4 0000 3A14 0000 F57B 3700 ..6.....:....{7.
000005D0 5208 0000 3C14 0000 4784 3700 E446 0000 R...<...G.7..F..
000005E0 3D14 0000 2BCB 3700 86C2 0000 3E14 0000 =...+.7.....>...
000005F0 B18D 3800 9ABE 0000 3F14 0000 4B4C 3900 ..8.....?...KL9.
00000600 9ABE 0000 4014 0000 E50A 3A00 98BE 0000 ....@.....:.....
00000610 4214 0000 7DC9 3A00 E67B 0000 4614 0000 B...}.:..{..F...
00000620 6345 3B00 6626 0000 4714 0000 C96B 3B00 cE;.f&..G....k;.
00000630 2645 0000 4814 0000 EFB0 3B00 084F 0000 &E..H.....;..O..
00000640 4914 0000 F7FF 3B00 6E58 0000 4C14 0000 I.....;.nX..L...
00000650 6558 3C00 16BD 0000 5114 0000 7B15 3D00 eX<.....Q...{.=.
00000660 32C1 0000 5214 0000 ADD6 3D00 069D 0000 2...R.....=.....
00000670 5514 0000 B373 3E00 564D 0000 5614 0000 U....s>.VM..V...
00000680 09C1 3E00 2038 0000 5714 0000 29F9 3E00 ..>. 8..W...).>.
00000690 F249 0000 5814 0000 1B43 3F00 24C3 0000 .I..X....C?.$...
000006A0 5A14 0000 3F06 4000 6AA7 0000 5B14 0000 Z...?.@.j...[...
000006B0 A9AD 4000 98B1 0000 5E14 0000 415F 4100 ..@.....^...A_A.
000006C0 1089 0000 6014 0000 51E8 4100 2473 0000 ....`...Q.A.$s..
000006D0 6114 0000 755B 4200 EA98 0000 6214 0000 a...u[B.....b...
000006E0 5FF4 4200 7865 0000 6F14 0000 D759 4300 _.B.xe..o....YC.
000006F0 8466 0000 7714 0000 5BC0 4300 3884 0000 .f..w...[.C.8...
00000700 7814 0000 9344 4400 96FE 0000 5249 4646 x....DD.....RIFF last header
00000710 CAED 0000 5741 5645 666D 7420 1000 0000 ....WAVEfmt ....
...      wave file data


Top Back
Top Back

Main - Downloads - FAQ - Forum - Interviews - Links - News - Rise of Rome - Scenarios - Strategies - Tips - Units