Changeset 06baeb2 for src


Ignore:
Timestamp:
Aug 8, 2018, 4:49:13 PM (16 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
8c50194
Parents:
e0b852a
Message:

src/spectral/dct_fftw.c: rename to aubio_dct_fftw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/dct_fftw.c

    re0b852a r06baeb2  
    5252extern pthread_mutex_t aubio_fftw_mutex;
    5353
    54 struct _aubio_dct_t {
     54typedef struct _aubio_dct_fftw_t aubio_dct_fftw_t;
     55
     56struct _aubio_dct_fftw_t {
    5557  uint_t size;
    5658  fvec_t *in, *out;
     
    6062};
    6163
    62 aubio_dct_t * new_aubio_dct (uint_t size) {
    63   aubio_dct_t * s = AUBIO_NEW(aubio_dct_t);
     64aubio_dct_fftw_t * new_aubio_dct_fftw (uint_t size) {
     65  aubio_dct_fftw_t * s = AUBIO_NEW(aubio_dct_fftw_t);
    6466  if (!s) {
    6567    goto beach;
     
    8688}
    8789
    88 void del_aubio_dct(aubio_dct_t *s) {
     90void del_aubio_dct_fftw(aubio_dct_fftw_t *s) {
    8991  pthread_mutex_lock(&aubio_fftw_mutex);
    9092  fftw_destroy_plan(s->pfw);
     
    9799}
    98100
    99 void aubio_dct_do(aubio_dct_t *s, const fvec_t *input, fvec_t *output) {
     101void aubio_dct_fftw_do(aubio_dct_fftw_t *s, const fvec_t *input, fvec_t *output) {
    100102  uint_t i;
    101103  fvec_copy(input, s->in);
     
    109111}
    110112
    111 void aubio_dct_rdo(aubio_dct_t *s, const fvec_t *input, fvec_t *output) {
     113void aubio_dct_fftw_rdo(aubio_dct_fftw_t *s, const fvec_t *input, fvec_t *output) {
    112114  uint_t i;
    113115  memcpy(s->data, input->data, input->length * sizeof(smpl_t));
Note: See TracChangeset for help on using the changeset viewer.