Mercurial > hg > piper-cpp
diff vamp-client/stub.h @ 88:bf2e6f939f9f
Rename, + adjust finish
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 12 Oct 2016 19:02:31 +0100 |
parents | db9a6ab618bc |
children |
line wrap: on
line diff
--- a/vamp-client/stub.h Wed Oct 12 17:47:59 2016 +0100 +++ b/vamp-client/stub.h Wed Oct 12 19:02:31 2016 +0100 @@ -10,7 +10,7 @@ class PiperStubPlugin; -class PiperClientBase +class PiperClientStubRequirements { public: virtual @@ -35,7 +35,7 @@ }; public: - PiperStubPlugin(PiperClientBase *client, + PiperStubPlugin(PiperClientStubRequirements *client, float inputSampleRate, Vamp::HostExt::PluginStaticData psd, Vamp::HostExt::PluginConfiguration defaultConfig) : @@ -49,7 +49,7 @@ virtual ~PiperStubPlugin() { if (m_state != Finished) { - std::cerr << "WARNING: PiperStubPlugin destroyed without finish() call, may be a server-side resource leak" << std::endl; + (void)m_client->finish(this); } } @@ -215,7 +215,7 @@ } private: - PiperClientBase *m_client; + PiperClientStubRequirements *m_client; State m_state; Vamp::HostExt::PluginStaticData m_psd; OutputList m_outputs;