1. Create a TXT-file and name it "SND.RFS"
2. Open its notebook and enter lines and in the end don't forget to put a semicolon:
Code: Select all
resource "SND1.raw";
data "SND1.SFX" as 11020: 150, 0x22050, 0x0, 5,-1, "SND1";
;
data - "a name your sound file.sfx" (can be any as it is created automatically)
as 11020: - number in fields "Data #" for MAPEDIT (can be any)
150, - volume of sounding (from 0 to 300)
0x22050, - sample rate (can be 11025 and 22050)
0x0, - unknown
5, - unknown
-1, - unknown
"SND1"; - a displayed name during playing of your sound in MAPEDIT (can be any)
It would be desirable to add that unknown parameters (0x0, 5 and -1) don't influence in any way for sound work, therefore don't worry about it. In the end of a script never forget to put a semicolon, differently it will be added nothing.
3. Save changes in the script.
4. Start BARF for file addition in game with such parameter:
Code: Select all
barf.exe sounds.rff @snd.rfs