Commit 2b77ed24 authored by Robert Manzke's avatar Robert Manzke

Process changed

parent 855be949
......@@ -4,5 +4,5 @@
class ctagAudioPlugin {
public:
virtual ~ctagAudioPlugin() {}
virtual void Process() const = 0;
virtual void Process(const float *, float *) const = 0;
};
#include "ctagAudioPluginAM.hpp"
void ctagAudioPluginAM::Process () const {
void ctagAudioPluginAM::Process (const float *in, float *out) const {
std::cout << "ctag AM\n";
}
......
......@@ -4,7 +4,7 @@
class ctagAudioPluginAM : public ctagAudioPlugin{
REGISTER("ctagAudioPluginAM", ctagAudioPlugin);
public:
void Process() const override;
void Process(const float *, float *) const override;
ctagAudioPluginAM();
~ctagAudioPluginAM();
};
\ No newline at end of file
#include "ctagAudioPluginFM.hpp"
void ctagAudioPluginFM::Process () const {
void ctagAudioPluginFM::Process (const float *in, float *out) const {
std::cout << "ctag FM\n";
}
......
......@@ -4,7 +4,7 @@
class ctagAudioPluginFM : public ctagAudioPlugin{
REGISTER("ctagAudioPluginFM", ctagAudioPlugin);
public:
void Process() const override;
void Process(const float *, float *) const override;
ctagAudioPluginFM();
~ctagAudioPluginFM();
};
\ No newline at end of file
......@@ -7,8 +7,9 @@ using factory::Registry;
int main(int argc, char** argv) {
std::unique_ptr<ctagAudioPlugin> plugin = Registry<ctagAudioPlugin>::New(argv[1]);
assert(plugin);
plugin->Process(); // will draw a rectangle!
float in[32], out[32];
plugin->Process(in, out); // will draw a rectangle!
plugin = Registry<ctagAudioPlugin>::New(argv[2]);
plugin->Process();
plugin->Process(in, out);
plugin = nullptr;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment