summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-07 22:04:45 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-07 22:04:45 +0100
commit85ddb3c5876ef2098c333bdd4db314f318810e49 (patch)
treea68449461b601e8ca69627437cc91324df030bb4 /deadbeef.h
parente1bb018523c66113076ccf00d07bfb53c878f0cf (diff)
added params to DSP plugins
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 0e66c05e..84fe74ca 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -785,6 +785,17 @@ typedef struct DB_dsp_s {
void (*reset) (DB_dsp_instance_t *inst);
void (*enable) (DB_dsp_instance_t *inst, int e);
+
+ // num_params can be NULL, to indicate that plugin doesn't expose any params
+ //
+ // if num_params is non-NULL -- get_param_name, set_param and get_param must
+ // all be implemented
+ //
+ // param names are for display-only, and are allowed to contain spaces
+ int (*num_params) (void);
+ const char *(*get_param_name) (int p);
+ void (*set_param) (DB_dsp_instance_t *inst, int p, float val);
+ float (*get_param) (DB_dsp_instance_t *inst, int p);
} DB_dsp_t;