Csabo
Moderator
Posts: 541
Registered: 02-02 |
Doom sounds have an 8 byte header, so normally the sound length would be (lump length-8). The 8 bytes are: $0003 (always the same), sample rate (2 bytes), and length (4 bytes?). The sounds that have a problem are reporting the length incorrectly, they only use 2 bytes, on which you cannot express numbers that are larger than 65535. XWE reads the header and takes the length from there.
If anyone were to save the lumps as raw data, and add a $01 into the header, they would play fine in XWE. I wonder what program created those so that the sound length is misreported.
I guess I could rewrite it so that it doesn't take the length from the header (since these sounds are 'buggy'), but would that break other things?
|