cuckydev / PSXFunkin

Friday Night Funkin' on the original PlayStation
https://discord.gg/Ehd7jN4N5y
Mozilla Public License 2.0
203 stars 58 forks source link

Optimise the PC audio backend #51

Closed Clownacy closed 3 years ago

Clownacy commented 3 years ago

The audio system now supports arbitrary sample formats and channel counts, allowing miniaudio to completely bypass its resampler and instead pass samples directly to the audio playback library, reducing overhead and latency.

Additionally, miniaudio and dr_mp3 have been optimised by disabling unneeded features and marking its functions as static, hopefully allowing smart compilers to remove unused functions.

At some point I'd like to add safer error handling, but that can wait until later.