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
881B

  1. #!/bin/bash
  2. # make audio ports constant, they must never change
  3. sed -i "/^int gen_kernel_numins = /{s/^/const /}" plugins/*/gen_exported.cpp
  4. sed -i "/^int gen_kernel_numouts = /{s/^/const /}" plugins/*/gen_exported.cpp
  5. # change prototype of param functions, no doubles!
  6. sed -i "s/setparameter(CommonState *cself, long index, double value, void *ref)/setparameter(CommonState *cself, long index, t_param value, void *ref)/" plugins/*/gen_exported.cpp plugins/*/gen_exported.h
  7. sed -i "s/getparameter(CommonState *cself, long index, double *value)/getparameter(CommonState *cself, long index, t_param *value)/" plugins/*/gen_exported.cpp plugins/*/gen_exported.h
  8. sed -i "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 "s/double /t_sample /" plugins/*/gen_exported.cpp