SC windows seems to prefer std::endl to guarantee printing to console

nix
Owen Green 6 years ago
parent ac7fc5b29c
commit 8a8dd1eeb0

@ -78,7 +78,7 @@ public:
std::stringstream ss; std::stringstream ss;
ss << '/' << Wrapper::getName() << "_latency"; ss << '/' << Wrapper::getName() << "_latency";
std::cout << ss.str() << '\n'; std::cout << ss.str() << std::endl;
ft->fSendNodeReply(&unit->mParent->mNode, -1, ss.str().c_str(), 1, l); ft->fSendNodeReply(&unit->mParent->mNode, -1, ss.str().c_str(), 1, l);
} }
@ -236,7 +236,7 @@ public:
{ {
if (mClient.state() == ProcessState::kProcessing) if (mClient.state() == ProcessState::kProcessing)
{ {
std::cout << Wrapper::getName() << ": Processing cancelled \n"; std::cout << Wrapper::getName() << ": Processing cancelled" << std::endl;
Wrapper::getInterfaceTable()->fSendNodeReply(&mParent->mNode, 1, "/done", Wrapper::getInterfaceTable()->fSendNodeReply(&mParent->mNode, 1, "/done",
0, nullptr); 0, nullptr);
} }
@ -260,7 +260,7 @@ public:
/// launches tidy up when complete /// launches tidy up when complete
void poll(int) void poll(int)
{ {
out0(0) = mDone ? 1.0 : static_cast<float>(mClient.progress()); out0(0) = mDone ? 1.0f : static_cast<float>(mClient.progress());
if (0 == pollCounter++ && !mCheckingForDone) if (0 == pollCounter++ && !mCheckingForDone)
{ {
@ -315,7 +315,7 @@ public:
// cancels using u_cmd, this is what will fire // cancels using u_cmd, this is what will fire
if (r.status() == Result::Status::kCancelled) if (r.status() == Result::Status::kCancelled)
{ {
std::cout << Wrapper::getName() << ": Processing cancelled \n"; std::cout << Wrapper::getName() << ": Processing cancelled" << std::endl;
w->mCancelled = true; w->mCancelled = true;
return false; return false;
} }
@ -323,7 +323,7 @@ public:
if (!r.ok()) if (!r.ok())
{ {
std::cout << "ERROR: " << Wrapper::getName() << ": " std::cout << "ERROR: " << Wrapper::getName() << ": "
<< r.message().c_str() << '\n'; << r.message().c_str() << std::endl;
return false; return false;
} }
@ -534,7 +534,7 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase<C>
static void doVersion(Unit*, sc_msg_iter*) static void doVersion(Unit*, sc_msg_iter*)
{ {
std::cout << "Fluid Corpus Manipualtion Toolkit version " << fluidVersion() std::cout << "Fluid Corpus Manipualtion Toolkit version " << fluidVersion()
<< '\n'; << std::endl;
} }
@ -577,7 +577,8 @@ public:
{ {
std::cout << "ERROR: " << getName() std::cout << "ERROR: " << getName()
<< ": parameter count mismatch. Perhaps your binary plugins " << ": parameter count mismatch. Perhaps your binary plugins "
"and SC sources are different versions\n"; "and SC sources are different versions"
<< std::endl;
// TODO: work out how to bring any further work to a halt // TODO: work out how to bring any further work to a halt
} }
return p; return p;

Loading…
Cancel
Save