- Timestamp:
- Nov 24, 2018, 5:17:29 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:
- 63bc67b
- Parents:
- c4a8bc1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/tempo.c
rc4a8bc1 rb1559f4c 169 169 { 170 170 aubio_tempo_t * o = AUBIO_NEW(aubio_tempo_t); 171 char_t specdesc_func[ 20];171 char_t specdesc_func[PATH_MAX]; 172 172 o->samplerate = samplerate; 173 173 // check parameters are valid … … 204 204 aubio_peakpicker_set_threshold (o->pp, o->threshold); 205 205 if ( strcmp(tempo_mode, "default") == 0 ) { 206 str cpy(specdesc_func, "specflux");206 strncpy(specdesc_func, "specflux", PATH_MAX - 1); 207 207 } else { 208 strcpy(specdesc_func, tempo_mode); 208 strncpy(specdesc_func, tempo_mode, PATH_MAX - 1); 209 specdesc_func[PATH_MAX - 1] = '\0'; 209 210 } 210 211 o->od = new_aubio_specdesc(specdesc_func,buf_size);
Note: See TracChangeset
for help on using the changeset viewer.