Changeset 7b7a58e for src


Ignore:
Timestamp:
Sep 16, 2017, 11:55:51 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
bfbfafa
Parents:
b99e2a5 (diff), cfb7fb7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into dct

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rb99e2a5 r7b7a58e  
    314314    //av_opt_set_int(avr, "out_sample_fmt",     AV_SAMPLE_FMT_FLTP,      0);
    315315#ifdef HAVE_AVRESAMPLE
    316     if ( ( err = avresample_open(avr) ) < 0) {
    317 #elif defined(HAVE_SWRESAMPLE)
    318     if ( ( err = swr_init(avr) ) < 0) {
     316    if ( ( err = avresample_open(avr) ) < 0)
     317#elif defined(HAVE_SWRESAMPLE)
     318    if ( ( err = swr_init(avr) ) < 0)
    319319#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
     320    {
    320321      char errorstr[256];
    321322      av_strerror (err, errorstr, sizeof(errorstr));
    322       AUBIO_ERR("source_avcodec: Could not open AVAudioResampleContext for %s (%s)\n",
     323      AUBIO_ERR("source_avcodec: Could not open resampling context for %s (%s)\n",
    323324          s->path, errorstr);
    324       //goto beach;
    325325      return;
    326326    }
  • src/mathutils.c

    rb99e2a5 r7b7a58e  
    2929typedef enum
    3030{
     31  aubio_win_ones,
    3132  aubio_win_rectangle,
    3233  aubio_win_hamming,
     
    6465      AUBIO_ERR ("window type can not be null.\n");
    6566      return 1;
    66   } else if (strcmp (window_type, "rectangle") == 0)
     67  } else if (strcmp (window_type, "ones") == 0)
     68      wintype = aubio_win_ones;
     69  else if (strcmp (window_type, "rectangle") == 0)
    6770      wintype = aubio_win_rectangle;
    6871  else if (strcmp (window_type, "hamming") == 0)
     
    8992  }
    9093  switch(wintype) {
     94    case aubio_win_ones:
     95      fvec_ones(win);
     96      break;
    9197    case aubio_win_rectangle:
    92       for (i=0;i<size;i++)
    93         w[i] = 0.5;
     98      fvec_set_all(win, .5);
    9499      break;
    95100    case aubio_win_hamming:
  • src/spectral/mfcc.c

    rb99e2a5 r7b7a58e  
    3737  uint_t win_s;             /** grain length */
    3838  uint_t samplerate;        /** sample rate (needed?) */
    39   uint_t n_filters;         /** number of  *filters */
     39  uint_t n_filters;         /** number of filters */
    4040  uint_t n_coefs;           /** number of coefficients (<= n_filters/2 +1) */
    4141  aubio_filterbank_t *fb;   /** filter bank */
  • src/spectral/phasevoc.c

    rb99e2a5 r7b7a58e  
    142142  AUBIO_FREE (pv);
    143143  return NULL;
     144}
     145
     146uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window) {
     147  return fvec_set_window(pv->w, (char_t*)window);
    144148}
    145149
  • src/spectral/phasevoc.h

    rb99e2a5 r7b7a58e  
    9696uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv);
    9797
     98/** set window type
     99
     100  \param pv phase vocoder to set the window type
     101  \param window_type a string representing a window
     102
     103  \return 0 if successful, non-zero otherwise
     104
     105 */
     106uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window_type);
     107
    98108#ifdef __cplusplus
    99109}
Note: See TracChangeset for help on using the changeset viewer.