Hi, In interp.c - interp(), the while loop decrements the input sample counter first. while (--num_inp > 0) { So won't it miss the last input sample? Not that you would ever call interp() one sample at a time, but if you did, it would do nothing. --num_inp would make the 1 a 0 and the while test would be while (0 > 0) { which would do nothing. So shouldn't be a post decrement? while (num_inp-- > 0) { Jeff
dspGuru Multirate Code Question
Started by ●May 30, 2004
Reply by ●May 31, 20042004-05-31