- Timestamp:
- Apr 25, 2016, 4:38:14 PM (9 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:
- b60f297
- Parents:
- b1d2be8
- Location:
- src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
rb1d2be8 r2d071ad 401 401 } 402 402 403 uint_t aubio_source_avcodec_get_duration (aubio_source_avcodec_t * s) { 404 if (s && &(s->avFormatCtx) != NULL) { 405 int64_t duration = s->avFormatCtx->duration; 406 return s->samplerate * ((uint_t)duration / 1e6 ); 407 } 408 return 0; 409 } 410 403 411 uint_t aubio_source_avcodec_close(aubio_source_avcodec_t * s) { 404 412 if (s->avr != NULL) { -
src/io/source_avcodec.h
rb1d2be8 r2d071ad 119 119 uint_t aubio_source_avcodec_seek (aubio_source_avcodec_t *s, uint_t pos); 120 120 121 uint_t aubio_source_avcodec_get_duration (aubio_source_avcodec_t * s); 122 121 123 /** 122 124
Note: See TracChangeset
for help on using the changeset viewer.