PS gui also makes the conversion (probably a better conversion than
DLTCEP).
DLTCEP as well as the
IESDP have it wrong in that they treat the WAVC header starting at offset 0x0010 as a constant value.
DLTCEP always makes it stereo, 16-bit, 22050Hz, and an unknown value of 0x9ffd. The
IESDP says it is always mono, 16-bit, 22050Hz, and an unknown value of 0xe777. In reality, some of the WAVC files in the game are mono and some are stereo. Most are 22050Hz but can at least also be 44100Hz. All of the files in my game do seem to be 16-bit,
but they can probably also be 8-bit. The "unknown values" found in my game are 0x0000 (888 times), 0x9c77 (1878 times), 0xe777 (5967 times), 0xed77 (16 times), 0xfd7f (717 times), and 0xfd9f (168 times). PS gui writes 0xfd9f but it should probably write 0xe777 since it is the most common until I can figure out where the value actually comes from. They seem to play fine in-game regardless of the value, though. PS gui reads the information (number of channels, bits per sample, sampling rate) from the WAV file and writes that to the WAVC header and ACM header in the WAVC file so that the headers don't lie about the actual contents of the file.
Edit: I just did a test with 8-bit mono and 8-bit stereo input files and the game crashed when I tired to play them with the CLUA console regardless of whether the headers said they were 8 or 16 bit. Both 16-bit mono and 16-bit stereo WAVC files played fine from the override folder, though. Again, this is just one test. On a side note, all 4 combination played in NearInfinity....
Edit2: I also just tested WAVC files ranging from 8000Hz to 65535Hz and they all played correctly in-game from the override folder. Only 22050Hz files play properly in NearInfinity, though.
Edited by Sam., 21 January 2010 - 10:05 PM.
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
CA Forums CA Homepage