Changeset c5de692


Ignore:
Timestamp:
Nov 17, 2018, 3:24:04 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
8eecb9f, a5762cf
Parents:
a5c6182
Message:

[filterbank] add const qualifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/filterbank_mel.c

    ra5c6182 rc5de692  
    171171    smpl_t samplerate)
    172172{
    173   uint_t retval;
    174 
    175173  /* Malcolm Slaney parameters */
    176   smpl_t lowestFrequency = 133.3333;
    177   smpl_t linearSpacing = 66.66666666;
    178   smpl_t logSpacing = 1.0711703;
    179 
    180   uint_t linearFilters = 13;
    181   uint_t logFilters = 27;
    182   uint_t n_filters = linearFilters + logFilters;
    183 
    184   uint_t fn;                    /* filter counter */
    185 
     174  const smpl_t lowestFrequency = 133.3333;
     175  const smpl_t linearSpacing = 66.66666666;
     176  const smpl_t logSpacing = 1.0711703;
     177
     178  const uint_t linearFilters = 13;
     179  const uint_t logFilters = 27;
     180  const uint_t n_filters = linearFilters + logFilters;
     181
     182  uint_t fn, retval;
    186183  smpl_t lastlinearCF;
    187184
Note: See TracChangeset for help on using the changeset viewer.