Changeset 0316feb
- Timestamp:
- Nov 17, 2018, 1:24:48 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 6d41dac
- Parents:
- 992e0ff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/filterbank_mel.c
r992e0ff r0316feb 220 220 uint_t n_bands = coeffs->height; 221 221 222 if (samplerate <= 0) { 223 AUBIO_ERR("filterbank: set_mel_coeffs samplerate should be > 0\n"); 224 return AUBIO_FAIL; 225 } 222 226 if (freq_max < 0) { 223 227 AUBIO_ERR("filterbank: set_mel_coeffs freq_max should be > 0\n"); … … 233 237 } else { 234 238 start = aubio_hztomel(freq_min); 235 }236 if (n_bands <= 0) {237 AUBIO_ERR("filterbank: set_mel_coeffs n_bands should be > 0\n");238 return AUBIO_FAIL;239 239 } 240 240 … … 264 264 uint_t n_bands = coeffs->height; 265 265 266 if (samplerate <= 0) { 267 AUBIO_ERR("filterbank: set_mel_coeffs samplerate should be > 0\n"); 268 return AUBIO_FAIL; 269 } 266 270 if (freq_max < 0) { 267 271 AUBIO_ERR("filterbank: set_mel_coeffs freq_max should be > 0\n"); … … 277 281 } else { 278 282 start = aubio_hztomel_htk(freq_min); 279 }280 if (n_bands <= 0) {281 AUBIO_ERR("filterbank: set_mel_coeffs n_bands should be > 0\n");282 return AUBIO_FAIL;283 283 } 284 284
Note: See TracChangeset
for help on using the changeset viewer.