Changeset c0a1906
- Timestamp:
- Dec 17, 2018, 2:01:06 AM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- 0512fca
- Parents:
- d16fbba
- Location:
- src/io
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source.c
rd16fbba rc0a1906 139 139 140 140 void del_aubio_source(aubio_source_t * s) { 141 AUBIO_ASSERT(s); 141 142 if (s->s_del && s->source) 142 143 s->s_del((void *)s->source); -
src/io/source_apple_audio.c
rd16fbba rc0a1906 95 95 UInt32 propSize; 96 96 97 if (s->path) AUBIO_FREE(s->path);98 97 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1); 99 98 strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); … … 294 293 295 294 void del_aubio_source_apple_audio(aubio_source_apple_audio_t * s){ 295 AUBIO_ASSERT(s); 296 296 aubio_source_apple_audio_close (s); 297 297 if (s->path) AUBIO_FREE(s->path); 298 298 freeAudioBufferList(&s->bufferList); 299 299 AUBIO_FREE(s); 300 return;301 300 } 302 301 -
src/io/source_avcodec.c
rd16fbba rc0a1906 148 148 s->channels = 1; 149 149 150 if (s->path) AUBIO_FREE(s->path);151 150 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1); 152 151 strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); … … 640 639 641 640 void del_aubio_source_avcodec(aubio_source_avcodec_t * s){ 642 if (!s) return;641 AUBIO_ASSERT(s); 643 642 aubio_source_avcodec_close(s); 644 643 if (s->output != NULL) { -
src/io/source_sndfile.c
rd16fbba rc0a1906 331 331 332 332 void del_aubio_source_sndfile(aubio_source_sndfile_t * s){ 333 if (!s) return;333 AUBIO_ASSERT(s); 334 334 aubio_source_sndfile_close(s); 335 335 #ifdef HAVE_SAMPLERATE -
src/io/source_wavread.c
rd16fbba rc0a1906 92 92 } 93 93 94 if (s->path) AUBIO_FREE(s->path);95 94 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1); 96 95 strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); … … 472 471 473 472 void del_aubio_source_wavread(aubio_source_wavread_t * s) { 474 if (!s) return;473 AUBIO_ASSERT(s); 475 474 aubio_source_wavread_close(s); 476 475 if (s->short_output) AUBIO_FREE(s->short_output);
Note: See TracChangeset
for help on using the changeset viewer.