Guest User

Untitled

a guest
May 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.70 KB | None | 0 0
  1.     _CrtCheckMemory();
  2.     memset(ci->equ, 3, FIRC*sizeof(eq_t));  // works fine
  3.     _CrtCheckMemory(); 
  4.     design_filters(ci->fbank, ci->equ, ci->eqs, ksize, fft_size, samplerate, ci->spline_lut[0], &ci->spline_changed, ci->spline_sem, kV, &ci->eqs_count);
  5.         |
  6.         |
  7.         v
  8.  
  9.  
  10. void design_filters(filterbank_t *fbank, eq_t *equ, eq_t *eqs, int32_t ksize, int32_t fft_size, double sr, double *spline_lut, int32_t *spline_changed, mutex_t *spline_sem, int32_t kV, int32_t *eqs_countp)
  11. {
  12.     int32_t i, ik, dsize, start, end, eqs_count;
  13.     double half_rolloff, t, tc, p0, p1, p2, p3, slope, dist, pitch, b;
  14.     FILE *file;
  15.  
  16.     _CrtCheckMemory();
  17.     memset(equ, 2, FIRC*sizeof(eq_t));  // crashes
  18.     _CrtCheckMemory(); 
  19.  
  20. ...
  21.  
  22. }
Add Comment
Please, Sign In to add comment