From be9da467d91af9362b7b9b78157219fea575df62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sun, 1 Oct 2023 00:33:27 -0400 Subject: [PATCH] [ci] Add some guards for the standalone build --- include/avnd/binding/standalone/prototype.cpp.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/avnd/binding/standalone/prototype.cpp.in b/include/avnd/binding/standalone/prototype.cpp.in index ca2b4c5d..98ff50d0 100644 --- a/include/avnd/binding/standalone/prototype.cpp.in +++ b/include/avnd/binding/standalone/prototype.cpp.in @@ -117,16 +117,20 @@ int main(int argc, char** argv) avnd::init_controls(object); // Create an audio processor +#if __has_include() standalone::audio_mapper audio{ object, in_channels, out_channels, buffer_size, sample_rate}; // Create an oscquery interface to it. standalone::oscquery_mapper oscq{object, osc_port, ws_port}; +#endif std::thread t{[&] { oscq.run(); }}; run_ui(object); +#if __has_include() oscq.stop(); +#endif t.join(); }