Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- src/modules/module-ladspa-sink.c | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
- diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
- index 5f5e4bc9..6f7ebbba 100644
- --- a/src/modules/module-ladspa-sink.c
- +++ b/src/modules/module-ladspa-sink.c
- @@ -510,10 +510,13 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk
- for (h = 0; h < (u->channels / u->max_ladspaport_count); h++) {
- for (c = 0; c < u->input_count; c++)
- pa_sample_clamp(PA_SAMPLE_FLOAT32NE, u->input[c], sizeof(float), src+ h*u->max_ladspaport_count + c, u->channels*sizeof(float), n);
- - if (u->use_run_adding)
- + if (u->use_run_adding) {
- + // TODO
- + u->descriptor->set_run_adding_gain(u->handle[h], u->run_adding_gain);
- u->descriptor->run_adding(u->handle[h], n);
- - else
- + } else {
- u->descriptor->run(u->handle[h], n);
- + }
- for (c = 0; c < u->output_count; c++)
- pa_sample_clamp(PA_SAMPLE_FLOAT32NE, dst + h*u->max_ladspaport_count + c, u->channels*sizeof(float), u->output[c], sizeof(float), n);
- }
- --
- 2.14.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement