- Timestamp:
- Oct 5, 2009, 12:30:32 AM (15 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- eebb0e1
- Parents:
- ccf8b77
- Location:
- src/temporal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/temporal/a_weighting.c
rccf8b77 rf530f12 27 27 #include "temporal/a_weighting.h" 28 28 29 voidaubio_filter_set_a_weighting (aubio_filter_t * f) {29 uint_t aubio_filter_set_a_weighting (aubio_filter_t * f) { 30 30 31 31 uint_t samplerate = aubio_filter_get_samplerate (f); … … 37 37 if ( order != 7 ) { 38 38 AUBIO_ERROR ( "order of A-weighting filter must be 7, not %d\n", order ); 39 return ;39 return 1; 40 40 } 41 41 … … 245 245 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.\n", 246 246 samplerate ); 247 break;247 return 1; 248 248 249 249 } 250 250 251 return 0; 251 252 } 252 253 -
src/temporal/a_weighting.h
rccf8b77 rf530f12 76 76 77 77 */ 78 voidaubio_filter_set_a_weighting (aubio_filter_t *f);78 uint_t aubio_filter_set_a_weighting (aubio_filter_t *f); 79 79 80 80 #ifdef __cplusplus -
src/temporal/c_weighting.c
rccf8b77 rf530f12 26 26 #include "temporal/c_weighting.h" 27 27 28 voidaubio_filter_set_c_weighting (aubio_filter_t * f) {28 uint_t aubio_filter_set_c_weighting (aubio_filter_t * f) { 29 29 30 30 uint_t samplerate = aubio_filter_get_samplerate (f); … … 36 36 if ( order != 5 ) { 37 37 AUBIO_ERROR ( "order of C-weighting filter must be 5, not %d\n", order ); 38 return ;38 return 1; 39 39 } 40 40 … … 200 200 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.\n", 201 201 samplerate ); 202 break;202 return 1; 203 203 204 204 } 205 205 206 return 0; 206 207 } 207 208 -
src/temporal/c_weighting.h
rccf8b77 rf530f12 76 76 77 77 */ 78 voidaubio_filter_set_c_weighting (aubio_filter_t *f);78 uint_t aubio_filter_set_c_weighting (aubio_filter_t *f); 79 79 80 80 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.