DPF with Max Gen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
745B

  1. #!/bin/bash
  2. # make audio ports constant, they must never change
  3. sed -i -e "/^int gen_kernel_numins = /{s/^/const /}" plugins/*/gen_exported.cpp
  4. sed -i -e "/^int gen_kernel_numouts = /{s/^/const /}" plugins/*/gen_exported.cpp
  5. # change prototype of param functions, no doubles!
  6. sed -i -e "s/long index, double value,/long index, t_param value,/" plugins/*/gen_exported.cpp plugins/*/gen_exported.h
  7. sed -i -e "s/long index, double \*value/long index, t_param \*value/" plugins/*/gen_exported.cpp plugins/*/gen_exported.h
  8. sed -i -e "s/create(double sr, long vs)/create(t_param sr, long vs)/" plugins/*/gen_exported.cpp plugins/*/gen_exported.h
  9. # use t_sample instead of forcing doubles
  10. sed -i -e "s/double /t_sample /" plugins/*/gen_exported.cpp