Changeset d84d19e for src/mathutils.c


Ignore:
Timestamp:
Sep 25, 2009, 4:20:27 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
ff9d00c
Parents:
e4284c9
Message:

src/mathutils.{c,h}: change prototype from aubio_window to new_aubio_window, allocating an fvec, use new function everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    re4284c9 rd84d19e  
    2525#include "config.h"
    2626
    27 void aubio_window(smpl_t *w, uint_t size, aubio_window_type wintype) {
     27fvec_t * new_aubio_window(uint_t size, aubio_window_type wintype) {
     28  // create fvec of size x 1 channel
     29  fvec_t * win = new_fvec( size, 1);
     30  smpl_t * w = win->data[0];
    2831  uint_t i;
    2932  switch(wintype) {
     
    7275      break;
    7376  }
     77  return win;
    7478}
    7579
Note: See TracChangeset for help on using the changeset viewer.