Lines Matching refs:drc
8 #include "drc.h"
301 * drc module functions
305 struct drc *drc; /* Initialized in the first call of drc_run() */
338 if (!data->drc) {
341 struct drc *drc = drc_new(data->sample_rate);
343 data->drc = drc;
344 drc->emphasis_disabled = (int) *data->ports[4];
355 drc_set_param(drc, i, PARAM_CROSSOVER_LOWER_FREQ,
357 drc_set_param(drc, i, PARAM_ENABLED, enable);
358 drc_set_param(drc, i, PARAM_THRESHOLD, threshold);
359 drc_set_param(drc, i, PARAM_KNEE, knee);
360 drc_set_param(drc, i, PARAM_RATIO, ratio);
361 drc_set_param(drc, i, PARAM_ATTACK, attack);
362 drc_set_param(drc, i, PARAM_RELEASE, release);
363 drc_set_param(drc, i, PARAM_POST_GAIN, boost);
365 drc_init(drc);
374 drc_process(data->drc, &data->ports[2], (int) sample_count);
380 if (data->drc)
381 drc_free(data->drc);
415 } else if (strcmp(plugin->label, "drc") == 0) {