r1sc / Open76

Interstate '76 engine reimplementation
GNU General Public License v3.0
52 stars 3 forks source link

GPW Audio Parser #17

Closed JJJohan closed 5 years ago

JJJohan commented 5 years ago

For some reason the last pull request prematurely closed itself because I rebased the branch with 'master'..

Anyway, I've basically removed the SoundManager and am pushing just the GpwParser file as we'll still need to be able to actually parse the GPW files.

As was mentioned in the previous pull request - there is a little bit of unknown data here, the main one I figured out was the audio range, which is -1 for 2D sounds and a value usually between 30-70 for most other sounds depending on their loudness.

The good news is the clicking sound was due to me misinterpreting the RIFF 'file size' field which doesn't include the RIFF header itself (8 bytes)