feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/timestretchfix/ffmpeg5
Last change
on this file since b5de3a9 was
7735d06,
checked in by Paul Brossier <piem@piem.org>, 6 years ago
|
[tests] factorise source tests
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[ba0ba10] | 1 | #define AUBIO_UNSTABLE 1 |
---|
| 2 | #include <aubio.h> |
---|
| 3 | #include "utils_tests.h" |
---|
| 4 | |
---|
[7735d06] | 5 | #define aubio_source_custom "avcodec" |
---|
[ba0ba10] | 6 | |
---|
[584714c] | 7 | #ifdef HAVE_LIBAV |
---|
[7735d06] | 8 | #define HAVE_AUBIO_SOURCE_CUSTOM |
---|
| 9 | #define aubio_source_custom_t aubio_source_avcodec_t |
---|
| 10 | #define new_aubio_source_custom new_aubio_source_avcodec |
---|
| 11 | #define del_aubio_source_custom del_aubio_source_avcodec |
---|
| 12 | #define aubio_source_custom_get_samplerate aubio_source_avcodec_get_samplerate |
---|
| 13 | #define aubio_source_custom_get_duration aubio_source_avcodec_get_duration |
---|
| 14 | #define aubio_source_custom_do aubio_source_avcodec_do |
---|
| 15 | #define aubio_source_custom_do_multi aubio_source_avcodec_do_multi |
---|
| 16 | #define aubio_source_custom_seek aubio_source_avcodec_seek |
---|
| 17 | #define aubio_source_custom_close aubio_source_avcodec_close |
---|
| 18 | #define aubio_source_custom_get_channels aubio_source_avcodec_get_channels |
---|
| 19 | #define aubio_source_custom_get_samplerate aubio_source_avcodec_get_samplerate |
---|
| 20 | #endif /* HAVE_LIBAV */ |
---|
[ba0ba10] | 21 | |
---|
[7735d06] | 22 | #include "base-source_custom.h" |
---|
[ba0ba10] | 23 | |
---|
[7735d06] | 24 | // this file uses the unstable aubio api, please use aubio_source instead |
---|
| 25 | // see src/io/source.h and tests/src/source/test-source.c |
---|
[ce5e424] | 26 | |
---|
[7735d06] | 27 | int main (int argc, char **argv) |
---|
| 28 | { |
---|
| 29 | return base_main(argc, argv); |
---|
[ba0ba10] | 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.