Feedback calc allows a couple of extra bits for the multiplication to allow for a better range of mclk/samplerate combos

This commit is contained in:
Ross Owen
2015-11-11 14:16:03 +00:00
parent ee40514079
commit 3da6a51d5f
2 changed files with 6 additions and 4 deletions

View File

@@ -410,6 +410,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
/* Number of MCLKS this SOF, approx 125 * 24 (3000), sample by sample rate */
GET_SHARED_GLOBAL(cycles, g_curSamFreqMultiplier);
cycles = ((int)((short)(u_tmp - lastClock))) * cycles;
cycles >>= 2; /* /4 */
/* Any odd bits (lower than 16.23) have to be kept seperate */
remnant += cycles & mask;