Changeset b643a33 for src/io/source_sndfile.c
- Timestamp:
- Apr 21, 2016, 7:01:50 PM (8 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:
- 26a6af7
- Parents:
- ae5d58a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
rae5d58a rb643a33 87 87 s->hop_size = hop_size; 88 88 s->channels = 1; 89 s->path = path; 89 90 if (s->path) AUBIO_FREE(s->path); 91 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX)); 92 strncpy(s->path, path, strnlen(path, PATH_MAX)); 90 93 91 94 // try opening the file, getting the info in sfinfo … … 306 309 } 307 310 #endif /* HAVE_SAMPLERATE */ 311 if (s->path) AUBIO_FREE(s->path); 308 312 AUBIO_FREE(s->scratch_data); 309 313 AUBIO_FREE(s);
Note: See TracChangeset
for help on using the changeset viewer.