diff options
author | waker <wakeroid@gmail.com> | 2010-12-14 21:36:52 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-12-14 21:36:52 +0100 |
commit | 4144d40b1a6fb5223e076b33b4cea82788bc3b89 (patch) | |
tree | 3be79b793af8b4455fad1eae471907a02043bd55 /deadbeef.h | |
parent | f3c8e6b96c752dcb921dba1f5ea847da97684a30 (diff) |
changed dsp plugin api to allow modification of any aspect of wave format
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |