Changeset a5c6182 for src


Ignore:
Timestamp:
Nov 17, 2018, 3:20:41 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
c5de692
Parents:
c853c1d
Message:

[filterbank] move statement after declaration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/filterbank_mel.c

    rc853c1d ra5c6182  
    173173  uint_t retval;
    174174
    175   if (samplerate <= 0) {
    176     AUBIO_ERR("filterbank: set_mel_coeffs_slaney samplerate should be > 0\n");
    177     return AUBIO_FAIL;
    178   }
    179 
    180175  /* Malcolm Slaney parameters */
    181176  smpl_t lowestFrequency = 133.3333;
     
    192187
    193188  /* buffers to compute filter frequencies */
    194   fvec_t *freqs = new_fvec (n_filters + 2);
     189  fvec_t *freqs;
     190
     191  if (samplerate <= 0) {
     192    AUBIO_ERR("filterbank: set_mel_coeffs_slaney samplerate should be > 0\n");
     193    return AUBIO_FAIL;
     194  }
     195
     196  freqs = new_fvec (n_filters + 2);
    195197
    196198  /* first step: fill all the linear filter frequencies */
Note: See TracChangeset for help on using the changeset viewer.