widberg / dpc

Superseded by https://github.com/widberg/bff
https://github.com/widberg/bff
MIT License
10 stars 2 forks source link

Audio is exported with the wrong frequency #3

Open TwoSpacesSG opened 2 years ago

TwoSpacesSG commented 2 years ago

This is all from memory so apologies for inaccuracies. Sound effects from bigfiles (specifically WALL-E for PC was tested) are exported to WAV with the wrong frequency, meaning that it sounds different in pitch and speed compared to how it is in the game - or at least I've found some familiar WALL-E and Ratatouille (!) sfx that sounded sped up like that to me. I believe there was some discussion about how there's data in the classes regarding frequency, and the dpc tool doesn't know about it, or something like that.

widberg commented 2 years ago

After some investigation, it appears this is due to a change in the default sample rate between games. FUEL uses 44100 when no sample rate is specified while WALL-E uses 22050. When proper WALL-E support is implemented, the Sound_Z implementation for WALL-E should take care to change this value. As of now, only FUEL is officially supported so no changes will be made; however, I will leave this issue open for reference while adding WALL-E support.

widberg commented 1 year ago

We should have a FUEL backend option for the default sound sample rate to use. By default, it should be 44100 but should be able to be overridden.