- Timestamp:
- Sep 16, 2017, 5:39:08 PM (7 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:
- 38a965e, 799a940
- Parents:
- 930bfec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r930bfec rc3e98d7 314 314 //av_opt_set_int(avr, "out_sample_fmt", AV_SAMPLE_FMT_FLTP, 0); 315 315 #ifdef HAVE_AVRESAMPLE 316 if ( ( err = avresample_open(avr) ) < 0) {317 #elif defined(HAVE_SWRESAMPLE) 318 if ( ( err = swr_init(avr) ) < 0) {316 if ( ( err = avresample_open(avr) ) < 0) 317 #elif defined(HAVE_SWRESAMPLE) 318 if ( ( err = swr_init(avr) ) < 0) 319 319 #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */ 320 { 320 321 char errorstr[256]; 321 322 av_strerror (err, errorstr, sizeof(errorstr)); 322 AUBIO_ERR("source_avcodec: Could not open AVAudioResampleContext for %s (%s)\n",323 AUBIO_ERR("source_avcodec: Could not open resampling context for %s (%s)\n", 323 324 s->path, errorstr); 324 //goto beach;325 325 return; 326 326 }
Note: See TracChangeset
for help on using the changeset viewer.