FriedHamCheese / naturau-base

C audio playback foundation designed for being modified and extended. It's the foundation code for naturau and my upcoming audio related projects :D
GNU Lesser General Public License v3.0
0 stars 0 forks source link

The algorithm for sample rate conversion doesn't seem right #1

Closed FriedHamCheese closed 4 months ago

FriedHamCheese commented 4 months ago

The way the sample rate conversion is done in aud_std_fmt doesn't seem to line up with the conversion done on paper. It's close to the paper, but not exactly. This might explain why the audio playback sounds slightly off at high frequencies. So the unit test for sample rate conversion will be skipped, and a branch would be open for sample rate conversion testings.

FriedHamCheese commented 4 months ago

Fixed the sample rate index ratio and corrected an error in the formula. Now 44.1k to 48khz sounds decent.