Skip to content

Commit

Permalink
[ci] Add some guards for the standalone build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 1, 2023
1 parent 7a351db commit be9da46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/avnd/binding/standalone/prototype.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,20 @@ int main(int argc, char** argv)
avnd::init_controls(object);

// Create an audio processor
#if __has_include(<ossia/detail/config.hpp>)
standalone::audio_mapper<type> audio{
object, in_channels, out_channels, buffer_size, sample_rate};

// Create an oscquery interface to it.
standalone::oscquery_mapper<type> oscq{object, osc_port, ws_port};
#endif

std::thread t{[&] { oscq.run(); }};

run_ui(object);

#if __has_include(<ossia/detail/config.hpp>)
oscq.stop();
#endif
t.join();
}

0 comments on commit be9da46

Please sign in to comment.