- Timestamp:
- Aug 8, 2018, 4:49:13 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 8c50194
- Parents:
- e0b852a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/dct_fftw.c
re0b852a r06baeb2 52 52 extern pthread_mutex_t aubio_fftw_mutex; 53 53 54 struct _aubio_dct_t { 54 typedef struct _aubio_dct_fftw_t aubio_dct_fftw_t; 55 56 struct _aubio_dct_fftw_t { 55 57 uint_t size; 56 58 fvec_t *in, *out; … … 60 62 }; 61 63 62 aubio_dct_ t * new_aubio_dct(uint_t size) {63 aubio_dct_ t * s = AUBIO_NEW(aubio_dct_t);64 aubio_dct_fftw_t * new_aubio_dct_fftw (uint_t size) { 65 aubio_dct_fftw_t * s = AUBIO_NEW(aubio_dct_fftw_t); 64 66 if (!s) { 65 67 goto beach; … … 86 88 } 87 89 88 void del_aubio_dct (aubio_dct_t *s) {90 void del_aubio_dct_fftw(aubio_dct_fftw_t *s) { 89 91 pthread_mutex_lock(&aubio_fftw_mutex); 90 92 fftw_destroy_plan(s->pfw); … … 97 99 } 98 100 99 void aubio_dct_ do(aubio_dct_t *s, const fvec_t *input, fvec_t *output) {101 void aubio_dct_fftw_do(aubio_dct_fftw_t *s, const fvec_t *input, fvec_t *output) { 100 102 uint_t i; 101 103 fvec_copy(input, s->in); … … 109 111 } 110 112 111 void aubio_dct_ rdo(aubio_dct_t *s, const fvec_t *input, fvec_t *output) {113 void aubio_dct_fftw_rdo(aubio_dct_fftw_t *s, const fvec_t *input, fvec_t *output) { 112 114 uint_t i; 113 115 memcpy(s->data, input->data, input->length * sizeof(smpl_t));
Note: See TracChangeset
for help on using the changeset viewer.