Advertisement
Guest User

Untitled

a guest
Mar 29th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.19 KB | None | 0 0
  1. ---
  2. src/modules/module-ladspa-sink.c | 7 +++++--
  3.  1 file changed, 5 insertions(+), 2 deletions(-)
  4.  
  5. diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
  6. index 5f5e4bc9..6f7ebbba 100644
  7. --- a/src/modules/module-ladspa-sink.c
  8. +++ b/src/modules/module-ladspa-sink.c
  9. @@ -510,10 +510,13 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk
  10.      for (h = 0; h < (u->channels / u->max_ladspaport_count); h++) {
  11.          for (c = 0; c < u->input_count; c++)
  12.              pa_sample_clamp(PA_SAMPLE_FLOAT32NE, u->input[c], sizeof(float), src+ h*u->max_ladspaport_count + c, u->channels*sizeof(float), n);
  13. -        if (u->use_run_adding)
  14. +        if (u->use_run_adding) {
  15. +            // TODO
  16. +            u->descriptor->set_run_adding_gain(u->handle[h], u->run_adding_gain);
  17.              u->descriptor->run_adding(u->handle[h], n);
  18. -        else
  19. +        } else {
  20.              u->descriptor->run(u->handle[h], n);
  21. +        }
  22.          for (c = 0; c < u->output_count; c++)
  23.              pa_sample_clamp(PA_SAMPLE_FLOAT32NE, dst + h*u->max_ladspaport_count + c, u->channels*sizeof(float), u->output[c], sizeof(float), n);
  24.      }
  25. --
  26. 2.14.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement