Started by mabersold, September 21, 2021, 16:33:14
Quote-Resample to 16-bit instead of 8-bit (probably not necessary unless I want to support other formats that use 16-bit instruments)
Quote from: Saga Musix on September 22, 2021, 19:31:34This got me a bit curious, and I had a look at the interpolation code. It seems like a rather convoluted way of expressing linear interpolation and could probably be simplified and sped up a lot (yeah yeah, any PC can play a 4-channel MOD these days... but where does it stop?). Anyway, since you are already dealing with double-precision floating-point numbers there it makes little sense to convert the result back to 8-bit audio. You throw away a lot of precision from the interpolation process and get stair steps in your interpolated data, so it would make more sense to keep the whole audio path in floating-point after interpolation. In the end, that's what modern audio APIs expect as input, anyway.