revsc.h 700 B

1234567891011121314151617181920212223242526272829
  1. typedef struct {
  2. int writePos;
  3. int bufferSize;
  4. int readPos;
  5. int readPosFrac;
  6. int readPosFrac_inc;
  7. int dummy;
  8. int seedVal;
  9. int randLine_cnt;
  10. SPFLOAT filterState;
  11. SPFLOAT *buf;
  12. } sp_revsc_dl;
  13. typedef struct {
  14. SPFLOAT feedback, lpfreq;
  15. SPFLOAT iSampleRate, iPitchMod, iSkipInit;
  16. SPFLOAT sampleRate;
  17. SPFLOAT dampFact;
  18. SPFLOAT prv_LPFreq;
  19. int initDone;
  20. sp_revsc_dl delayLines[8];
  21. sp_auxdata aux;
  22. } sp_revsc;
  23. int sp_revsc_create(sp_revsc **p);
  24. int sp_revsc_destroy(sp_revsc **p);
  25. int sp_revsc_init(sp_data *sp, sp_revsc *p);
  26. int sp_revsc_compute(sp_data *sp, sp_revsc *p, SPFLOAT *in1, SPFLOAT *in2, SPFLOAT *out1, SPFLOAT *out2);