--- a/src/relpipe-in-jack.cpp Mon May 18 18:04:12 2020 +0200
+++ b/src/relpipe-in-jack.cpp Mon May 18 22:00:20 2020 +0200
@@ -45,7 +45,8 @@
signal(SIGHUP, finish);
signal(SIGINT, finish);
jackCommand.reset(new JackCommand());
- jackCommand->processJackStream(cout);
+ std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout));
+ jackCommand->processJackStream(writer, std::bind(fflush, stdout)); // std::bind(fflush, XXX) Factory::create(XXX) must be the same stream XXX
resultCode = CLI::EXIT_CODE_SUCCESS;
} catch (JackException e) {
fwprintf(stderr, L"Caught JACK exception: %ls\n", e.getMessge().c_str());