summaryrefslogtreecommitdiff
path: root/examples/dsp_template.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-15 17:55:03 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-15 17:55:03 +0200
commitd618d16b544992275a5dced2c88b87ad94a9d1f1 (patch)
tree9fc3e18f5d1f1363fd7ac746cf6ffd829e4835a4 /examples/dsp_template.c
parent880bb9426ec1721ca485f8168dc94132edde1edf (diff)
updated plugins example code
Diffstat (limited to 'examples/dsp_template.c')
-rw-r--r--examples/dsp_template.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/dsp_template.c b/examples/dsp_template.c
index 24b53759..d78d7531 100644
--- a/examples/dsp_template.c
+++ b/examples/dsp_template.c
@@ -51,7 +51,7 @@ example_reset (ddb_dsp_context_t *ctx) {
}
int
-example_process (ddb_dsp_context_t *ctx, float *samples, int nframes, ddb_waveformat_t *fmt) {
+example_process (ddb_dsp_context_t *ctx, float *samples, int nframes, int maxframes, ddb_waveformat_t *fmt, float *r) {
ddb_example_t *example = (ddb_example_t *)ctx;
for (int i = 0; i < nframes*fmt->channels; i++) {
samples[i] *= example->level;
@@ -115,9 +115,7 @@ static DB_dsp_t plugin = {
.plugin.id = "example",
.plugin.name = "example",
.plugin.descr = "example DSP Plugin",
- .plugin.author = "",
- .plugin.email = "",
- .plugin.website = "",
+ .plugin.copyright = "copyright message - author(s), license, etc",
.num_params = example_num_params,
.get_param_name = example_get_param_name,
.set_param = example_set_param,