Overview
Comment: | Change the sounds.js to use the sound names instead of numbers (although this does not find all of the sounds; also, it may be reverted if needed) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2b1740ba7ca1f61d849c8589f0e837e6 |
User & Date: | user on 2021-04-01 04:00:57 |
Other Links: | manifest | tags |
Context
2021-04-01
| ||
19:07 | Mention that contributions of documentation in languages other than English are not required to use the PC haracter set, and may use whatever character set is appropriate. check-in: 63c71e1a57 user: user tags: trunk | |
04:00 | Change the sounds.js to use the sound names instead of numbers (although this does not find all of the sounds; also, it may be reverted if needed) check-in: 2b1740ba7c user: user tags: trunk | |
2021-03-31
| ||
19:26 | Add the flip instruction. check-in: f292d8781e user: user tags: trunk | |
Changes
Modified sounds.js from [02ef9788f0] to [3783b4826e].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + | // This program will read the sounds from HEROFALL.EXE // The output is written to a Hamster archive to stdout "use strict"; const hamarc=require("hamarc"); const fs=require("fs"); const out=new hamarc.File(1); const hdr=Buffer.allocUnsafe(12); const fil=fs.openSync(process.argv[2],"r"); const names=` SPLASH POUR DOOR GLASS BANG UNHH UH_OH FROG THWIT KLINKK POWER KLECK CLICK SMALL_POP DINK TICK CHYEW CHEEP ANHH BRRRT BRRREEET BWEEP DRLRLRINK FFFFTT WAHOO YEEHAW OLDPHONE RATTLE BEEDEEP THMP_thmp BEDOINGNG HEARTBEAT LOCK TAHTASHH BOOOM VACUUM RATCHET2 DYUPE UNCORK BOUNCE JAYAYAYNG DEEP_POP RATCHET1 GLISSANT BUZZER FAROUT KEWEL WHACK STEAM HAWK `.split("\n").map(x=>x.trim()).filter(x=>x); let n=0; let o=process.argv[3]?parseInt(process.argv[3],16):0x5CD92; for(;;) { if(fs.readSync(fil,hdr,0,12,o)<12) break; if(hdr.toString("ascii",0,4)!="RIFF" || hdr.toString("ascii",8,12)!="WAVE") break; let len=hdr.readUInt32LE(4); let buf=Buffer.allocUnsafeSlow(len+8); fs.readSync(fil,buf,0,len,o); |