- unsigned gain_shift = inertia + U32_OPTVAL(DAMP, fn->lpr),
- mask = (1U << U32_OPTVAL(BLOCKSIZE, fn->lpr)) - 1U;
+ unsigned mask = (1U << U32_OPTVAL(BLOCKSIZE, fn->lpr)) - 1U;
op[i] = neg? -sample : sample;
if (++pcd->num_samples & mask)
continue;
// PARA_DEBUG_LOG("gain: %u, peak: %u\n", pcd->current_gain,
// pcd->peak);
op[i] = neg? -sample : sample;
if (++pcd->num_samples & mask)
continue;
// PARA_DEBUG_LOG("gain: %u, peak: %u\n", pcd->current_gain,
// pcd->peak);
if (pcd->peak < U32_OPTVAL(TARGET_LEVEL, fn->lpr)) {
if (pcd->current_gain < pcd->max_gain)
pcd->current_gain++;
if (pcd->peak < U32_OPTVAL(TARGET_LEVEL, fn->lpr)) {
if (pcd->current_gain < pcd->max_gain)
pcd->current_gain++;
PARA_EMERG_LOG("aggressiveness (%u) out of range\n", val);
exit(EXIT_FAILURE);
}
val = U32_OPTVAL(INERTIA, lpr);
PARA_EMERG_LOG("aggressiveness (%u) out of range\n", val);
exit(EXIT_FAILURE);
}
val = U32_OPTVAL(INERTIA, lpr);
val = U32_OPTVAL(TARGET_LEVEL, lpr);
if (val > 32767) {
PARA_EMERG_LOG("target-level (%u) out of range\n", val);
val = U32_OPTVAL(TARGET_LEVEL, lpr);
if (val > 32767) {
PARA_EMERG_LOG("target-level (%u) out of range\n", val);