summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-21 21:36:11 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-21 21:36:11 +0200
commit3bcd23fb79f2db7cd6483145f7a7277097d1960a (patch)
treedafdcbf4c3a2682cef6febd3fb9375289a4abd5b /deadbeef.h
parent2c26434e62b0018d87c6f75c9f25a2859216627a (diff)
added new DSP API pass_through, which allows to skip DSP stage if it doesn't do anything;
bumped API version to 1.1
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 2bd0287f..3b7f919b 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -61,6 +61,8 @@ extern "C" {
// api version history:
// 9.9 -- devel
+// 1.1 -- deadbeef-0.5.1
+// adds pass_through method to dsp plugins for optimization purposes
// 1.0 -- deadbeef-0.5.0
// 0.10 -- deadbeef-0.4.4-portable-r1 (note: 0.4.4 uses api v0.9)
// 0.9 -- deadbeef-0.4.3-portable-build3
@@ -74,7 +76,7 @@ extern "C" {
// 0.1 -- deadbeef-0.2.0
#define DB_API_VERSION_MAJOR 1
-#define DB_API_VERSION_MINOR 0
+#define DB_API_VERSION_MINOR 1
#define DDB_PLUGIN_SET_API_VERSION\
.plugin.api_vmajor = DB_API_VERSION_MAJOR,\
@@ -986,6 +988,13 @@ typedef struct DB_dsp_s {
// config dialog implementation uses set/get param, so they must be
// implemented if this is nonzero
const char *configdialog;
+
+ // pass_through is available since 1.1 api
+ // can be NULL
+ // should return 1 if DSP plugin instance will pass data through, without
+ // modification, with the current parameters;
+ // 0 otherwise
+ int (*pass_through) (ddb_dsp_context_t *ctx, ddb_waveformat_t *fmt);
} DB_dsp_t;
// misc plugin