Mercurial > hg > vamp-plugin-tester
comparison Test.cpp @ 23:28097c1b3de4
* Add verbose option
* More sensible response when a plugin legitimately refuses to initialise
* Actually throw an exception when failing to load a plugin, instead of just
saying that we do so in the comment but actually crashing instead
author | cannam |
---|---|
date | Mon, 08 Jun 2009 10:08:26 +0000 |
parents | 5af5eb2627ad |
children | b1bc4d045a4b |
comparison
equal
deleted
inserted
replaced
22:ca6803a93bb7 | 23:28097c1b3de4 |
---|---|
50 Test::~Test() { } | 50 Test::~Test() { } |
51 | 51 |
52 Plugin * | 52 Plugin * |
53 Test::load(std::string key, float rate) | 53 Test::load(std::string key, float rate) |
54 { | 54 { |
55 return PluginLoader::getInstance()->loadPlugin | 55 Plugin *p = PluginLoader::getInstance()->loadPlugin |
56 (key, rate, PluginLoader::ADAPT_ALL); | 56 (key, rate, PluginLoader::ADAPT_ALL); |
57 if (!p) throw FailedToLoadPlugin(); | |
58 return p; | |
57 } | 59 } |
58 | 60 |
59 float ** | 61 float ** |
60 Test::createBlock(size_t channels, size_t blocksize) | 62 Test::createBlock(size_t channels, size_t blocksize) |
61 { | 63 { |