summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-14 21:36:52 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-14 21:36:52 +0100
commit4144d40b1a6fb5223e076b33b4cea82788bc3b89 (patch)
tree3be79b793af8b4455fad1eae471907a02043bd55 /deadbeef.h
parentf3c8e6b96c752dcb921dba1f5ea847da97684a30 (diff)
changed dsp plugin api to allow modification of any aspect of wave format
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 06f009b1..114bfc4a 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -779,10 +779,12 @@ typedef struct DB_dsp_s {
void (*close) (ddb_dsp_context_t *ctx);
- // samples are interleaved
+ // samples are always interleaved floating point
// returned value is number of output frames
- // can change samplerate and number of channels
- int (*process) (ddb_dsp_context_t *ctx, float *samples, int frames, int *samplerate, int *channels);
+ // can change channels, samplerate, channelmask
+ // buffer size should always have reserved space for upsampling/upmixing
+ // TODO: decide on buffer size
+ int (*process) (ddb_dsp_context_t *ctx, float *samples, int frames, ddb_waveformat_t *fmt);
void (*reset) (ddb_dsp_context_t *ctx);