blob: 63180ba12b6b8675e52469f741441bda2e226f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// Copyright Jean Pierre Cimalando 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "PluginMain.h"
#include <string.h>
ExamplePlugin::ExamplePlugin()
: Plugin(0, 0, 0)
{
}
const char *ExamplePlugin::getLabel() const
{
return "Cairo DPF Example";
}
const char *ExamplePlugin::getMaker() const
{
return "Jean Pierre Cimalando";
}
const char *ExamplePlugin::getLicense() const
{
return "Boost Software License";
}
uint32_t ExamplePlugin::getVersion() const
{
return 0;
}
int64_t ExamplePlugin::getUniqueId() const
{
return 0;
}
void ExamplePlugin::initParameter(uint32_t index, Parameter ¶meter)
{
}
float ExamplePlugin::getParameterValue(uint32_t index) const
{
return 0;
}
void ExamplePlugin::setParameterValue(uint32_t index, float value)
{
}
void ExamplePlugin::run(const float **inputs, float **outputs, uint32_t frames)
{
memcpy(outputs[0], inputs[0], frames * sizeof(float));
}
Plugin *DISTRHO::createPlugin()
{
return new ExamplePlugin;
}
|