diff options
author | waker <wakeroid@gmail.com> | 2010-12-07 22:04:45 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-12-07 22:04:45 +0100 |
commit | 85ddb3c5876ef2098c333bdd4db314f318810e49 (patch) | |
tree | a68449461b601e8ca69627437cc91324df030bb4 /deadbeef.h | |
parent | e1bb018523c66113076ccf00d07bfb53c878f0cf (diff) |
added params to DSP plugins
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |