Mercurial > hg > piper-cpp
comparison vamp-client/qt/AutoPlugin.h @ 192:458766b73e71
Merge pull request #3 from piper-audio/dev/step-and-block-size
Fix erroneous logic for handling step and block size in prior commit
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 07 Feb 2017 09:51:29 +0000 |
parents | 52322dde68ea |
children | ad6025dc0b04 61034472c304 |
comparison
equal
deleted
inserted
replaced
188:90c962b68d7f | 192:458766b73e71 |
---|---|
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 } |