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.

32 lines
745B

  1. typedef struct
  2. {
  3. // Filter #1 (Low band)
  4. double lf; // Frequency
  5. double f1p0; // Poles ...
  6. double f1p1;
  7. double f1p2;
  8. double f1p3;
  9. // Filter #2 (High band)
  10. double hf; // Frequency
  11. double f2p0; // Poles ...
  12. double f2p1;
  13. double f2p2;
  14. double f2p3;
  15. // Sample history buffer
  16. double sdm1; // Sample data minus 1
  17. double sdm2; // 2
  18. double sdm3; // 3
  19. // Gain Controls
  20. double lg; // low gain
  21. double mg; // mid gain
  22. double hg; // high gain
  23. } EQSTATE;
  24. // Exports
  25. extern void init_3band_state(EQSTATE* es, int lowfreq, int highfreq, int mixfreq);
  26. extern double do_3band(EQSTATE* es, double sample);