include/FluidSCWrapper.hpp: When cancellation happens by freeing the synth, it would still be nice to get the informational message

nix
Owen Green 6 years ago
parent 278d50c608
commit bfb943fb97

@ -201,6 +201,13 @@ public:
, mClient{Wrapper::setParams(mParams,mWorld->mVerbosity > 0, mWorld, mControlsIterator,true)}
{}
~NonRealTime()
{
if(mClient.state() == ProcessState::kProcessing)
std::cout << Wrapper::getName() << ": Processing cancelled \n";
//processing will be cancelled in ~NRTThreadAdaptor()
}
/// No option of not using a worker thread for now
/// init() sets up the NRT process via the SC NRT thread, and then sets our UGen calc function going
@ -255,6 +262,8 @@ public:
if(s==ProcessState::kDone || s==ProcessState::kDoneStillProcessing)
{
//Given that cancellation from the language now always happens by freeing the
//synth, this block isn't reached normally. HOwever, if someone cancels using u_cmd, this is what will fire
if(r.status() == Result::Status::kCancelled)
{
std::cout << Wrapper::getName() << ": Processing cancelled \n";

Loading…
Cancel
Save