I have two WAV files in the /s/ folder: 54000 (the engine sound loop) and 54001 to 54003 (the laser's firing sound). The WAV files are 22k and 44khz sample rate respectively and 16bit PCM mono. The sample rates are different because the original discoverer sound and IRE sound are different rates. I assume the engine doesn't care what the sample rate is between those two.
I have edited my sounds.txt with the following:
Code: Select all
54000;10
180;0;SFX_3DCONTROL|SFX_LOOP;0;0;0;0; // 54000 custom engine Loop
180;190;NULL;-20;20;5;90000; // 54001 Custom laser 1 modded
180;230;NULL;-20;20;5;90000; // 54002 Custom laser 2 modded
180;255;NULL;-20;20;5;90000; // 54003 Custom laser 3 modded
I loosely understand what these sound files do. 54000;10 is what number in the /s/ folder these scripts refer to, and how many files after 54000 respectively (in this case 54000-54010 right?)
BUT when I change the engine sound in my discoverer copy to 54000, nothing plays in game. Same thing with my lasers.
So am I missing anything? Why won't the sounds work in game?
Also, where does the game list using the other two variations for the IRE's sound? In TLasers the IRE is set only to use 913. Is it just programmed to use +/- one numbered sound? Where is that setting located?
Thanks for any help!