comparison vamp-sdk/hostext/PluginWrapper.cpp @ 67:4017e21c12dd

* Fix compile failure with gcc 3.4
author cannam
date Mon, 04 Jun 2007 10:55:46 +0000
parents 9d3272c7db60
children 64697dca0d48
comparison
equal deleted inserted replaced
66:80803674a695 67:4017e21c12dd
41 namespace HostExt { 41 namespace HostExt {
42 42
43 class PluginRateExtractor : public Plugin 43 class PluginRateExtractor : public Plugin
44 { 44 {
45 public: 45 public:
46 PluginRateExtractor() : Plugin(0) { }
46 float getRate() const { return m_inputSampleRate; } 47 float getRate() const { return m_inputSampleRate; }
47 }; 48 };
48 49
49 PluginWrapper::PluginWrapper(Plugin *plugin) : 50 PluginWrapper::PluginWrapper(Plugin *plugin) :
50 Plugin(((PluginRateExtractor *)plugin)->getRate()), 51 Plugin(((PluginRateExtractor *)plugin)->getRate()),