zephray / SampleRateConverter

Audio sample rate converter based on polyphase FIR filter
30 stars 5 forks source link

README.md Usage 中代码可能有错误 #2

Open ljtjerry opened 2 years ago

ljtjerry commented 2 years ago

Manually pick the number of taps, cutoff frequency, and run mutiple instances: 这个部分,实际运行时,如果 int interpolation = 640; int decimation = 147; float cutoff_frequency = 0.5; //即,和Simple 44.1kHz to 192kHz upsampler:中填写一样的参数 在运行到float* coefficients = src_generate_fir_coeffs(num_taps, cutoff_frequency / interpolation);时, simple部分的代码,num_taps=24,cutoff_freq=0.020833333 但是手动的部分,num_taps=15360,cutoff_freq=cutoff_frequency / interpolation=0.00078125

是不是手动参数设定(也就是Manually pick the number of taps, cutoff frequency, and run mutiple instances:这一块的示例代码写错了)的示例代码写错了呢?

zephray commented 2 years ago

其实之前自己在用的时候注意到……两部分都有问题,但是修复后的代码和文档没有推上来。我尽快看看把修改后的推一下

ljtjerry commented 2 years ago

非常感谢! 想请问一下,这个Repository里面的代码,本身涉及到的算法(就是任意采样率转换相关的),可以通过搜索什么样的关键词,或者看哪本书进行详细学习呢?