Lines Matching defs:drift
66 "adjust_threshold=<how much drift to readjust after in ms> "
357 /* calculate drift between capture and playback */
722 /* calculate drift between capture and playback */
725 /* and adjust for the drift */
729 /* 1. Calculate drift at this point, pass to canceller
741 float drift;
747 /* Estimate snapshot drift as follows:
751 * drift = (pd - rd) / rd;
757 drift = ((float)(plen - u->sink_rem) - (rlen - u->source_rem)) / ((float)(rlen - u->source_rem));
763 fprintf(u->drift_file, "d %a\n", drift);
800 u->ec->set_drift(u->ec, drift);
825 /* This one's simpler than the drift compensation case -- we just iterate over
2063 pa_log_info("Canceller does drift compensation -- built-in compensation will be disabled");
2228 float drift;
2292 pa_log("Drift compensation enabled but drift file not specified");
2299 perror ("Could not open drift file");
2323 if (!fscanf(u.drift_file, "%a", &drift)) {
2328 u.ec->set_drift(u.ec, drift);