Fix to feedback factor range fix

This commit is contained in:
Ross Owen
2015-11-17 15:22:33 +00:00
parent ae6720d0ed
commit 2130da665e
2 changed files with 3 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
#endif
unsigned u_tmp;
unsigned sampleFreq = 0;
unsigned lastClock;
unsigned lastClock = 0;
unsigned clocks = 0;
@@ -410,7 +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 */
cycles = (int) cycles >> 2; /* /4 */
/* Any odd bits (lower than 16.23) have to be kept seperate */
remnant += cycles & mask;