Mercurial > hg > piper-cpp
comparison vamp-client/AutoPlugin.h @ 101:8c449824e08d
Parameterise process name
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 14 Oct 2016 16:22:32 +0100 |
parents | f55631599988 |
children | d74dfc11927c |
comparison
equal
deleted
inserted
replaced
100:bbb99f94e225 | 101:8c449824e08d |
---|---|
11 namespace client { | 11 namespace client { |
12 | 12 |
13 class AutoPlugin : public Vamp::Plugin | 13 class AutoPlugin : public Vamp::Plugin |
14 { | 14 { |
15 public: | 15 public: |
16 AutoPlugin(std::string pluginKey, | 16 AutoPlugin(std::string serverName, |
17 std::string pluginKey, | |
17 float inputSampleRate, | 18 float inputSampleRate, |
18 int adapterFlags) : | 19 int adapterFlags) : |
19 Vamp::Plugin(inputSampleRate), | 20 Vamp::Plugin(inputSampleRate), |
20 m_transport("../bin/piper-vamp-server"), //!!!*£*$&"$*" | 21 m_transport(serverName), |
21 m_client(&m_transport) | 22 m_client(&m_transport) |
22 { | 23 { |
23 LoadRequest req; | 24 LoadRequest req; |
24 req.pluginKey = pluginKey; | 25 req.pluginKey = pluginKey; |
25 req.inputSampleRate = inputSampleRate; | 26 req.inputSampleRate = inputSampleRate; |