Mercurial > hg > piper-cpp
comparison vamp-client/qt/AutoPlugin.h @ 193:bc35e19f3345
Merge branch 'master' of https://github.com/piper-audio/piper-cpp into test/plugin-stub-configured-framing
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 07 Feb 2017 16:35:32 +0000 |
parents | 52322dde68ea |
children | ad6025dc0b04 61034472c304 |
comparison
equal
deleted
inserted
replaced
191:79c64ff2610b | 193:bc35e19f3345 |
---|---|
136 } | 136 } |
137 | 137 |
138 virtual bool initialise(size_t inputChannels, | 138 virtual bool initialise(size_t inputChannels, |
139 size_t stepSize, | 139 size_t stepSize, |
140 size_t blockSize) { | 140 size_t blockSize) { |
141 try { | 141 return getPlugin()->initialise(inputChannels, stepSize, blockSize); |
142 return getPlugin()->initialise(inputChannels, stepSize, blockSize); | |
143 } catch (const ServiceError &e) { | |
144 // Sadly, the Vamp API has taught hosts to try to divine | |
145 // initialisation problems from a bool return value alone | |
146 log(std::string("AutoPlugin: initialise failed: ") + e.what()); | |
147 return false; | |
148 } | |
149 } | 142 } |
150 | 143 |
151 virtual void reset() { | 144 virtual void reset() { |
152 getPlugin()->reset(); | 145 getPlugin()->reset(); |
153 } | 146 } |