source: tests/src/io/test-sink_sndfile.c @ 4eb48e6

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/timestretchfix/ffmpeg5
Last change on this file since 4eb48e6 was 46a1e34, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[tests] factorise sink tests

  • Property mode set to 100644
File size: 894 bytes
RevLine 
[856ceb5]1#define AUBIO_UNSTABLE 1
[2c3d4ca]2#include <aubio.h>
[248da64]3#include "utils_tests.h"
[2c3d4ca]4
[46a1e34]5#define aubio_sink_custom "sndfile"
[2c3d4ca]6
7#ifdef HAVE_SNDFILE
[46a1e34]8#define HAVE_AUBIO_SINK_CUSTOM
9#define aubio_sink_custom_t aubio_sink_sndfile_t
10#define new_aubio_sink_custom new_aubio_sink_sndfile
11#define del_aubio_sink_custom del_aubio_sink_sndfile
12#define aubio_sink_custom_do aubio_sink_sndfile_do
13#define aubio_sink_custom_do_multi aubio_sink_sndfile_do_multi
14#define aubio_sink_custom_close aubio_sink_sndfile_close
15#define aubio_sink_custom_preset_samplerate aubio_sink_sndfile_preset_samplerate
16#define aubio_sink_custom_preset_channels aubio_sink_sndfile_preset_channels
17#endif /* HAVE_SNDFILE */
[2c3d4ca]18
[46a1e34]19#include "base-sink_custom.h"
[248da64]20
[46a1e34]21// this file uses the unstable aubio api, please use aubio_sink instead
22// see src/io/sink.h and tests/src/sink/test-sink.c
[2c3d4ca]23
[46a1e34]24int main (int argc, char **argv)
25{
26  return base_main(argc, argv);
[2c3d4ca]27}
Note: See TracBrowser for help on using the repository browser.