summaryrefslogtreecommitdiff
path: root/plugins/supereq
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 /plugins/supereq
parentf3c8e6b96c752dcb921dba1f5ea847da97684a30 (diff)
changed dsp plugin api to allow modification of any aspect of wave format
Diffstat (limited to 'plugins/supereq')
-rw-r--r--plugins/supereq/supereq.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/supereq/supereq.c b/plugins/supereq/supereq.c
index d3d83389..afa06359 100644
--- a/plugins/supereq/supereq.c
+++ b/plugins/supereq/supereq.c
@@ -75,27 +75,27 @@ supereq_plugin_stop (void) {
}
int
-supereq_process (ddb_dsp_context_t *ctx, float *samples, int frames, int *samplerate, int *channels) {
+supereq_process (ddb_dsp_context_t *ctx, float *samples, int frames, ddb_waveformat_t *fmt) {
ddb_supereq_ctx_t *supereq = (ddb_supereq_ctx_t *)ctx;
if (supereq->params_changed) {
recalc_table (supereq);
supereq->params_changed = 0;
}
- if (supereq->last_srate != *samplerate) {
+ if (supereq->last_srate != fmt->samplerate) {
deadbeef->mutex_lock (supereq->mutex);
- supereq->last_srate = *samplerate;
- supereq->last_nch = *channels;
+ supereq->last_srate = fmt->samplerate;
+ supereq->last_nch = fmt->channels;
recalc_table (supereq);
deadbeef->mutex_unlock (supereq->mutex);
equ_clearbuf(&supereq->state);
}
- else if (supereq->last_nch != *channels) {
+ else if (supereq->last_nch != fmt->channels) {
deadbeef->mutex_lock (supereq->mutex);
- supereq->last_nch = *channels;
+ supereq->last_nch = fmt->channels;
deadbeef->mutex_unlock (supereq->mutex);
equ_clearbuf(&supereq->state);
}
- equ_modifySamples_float(&supereq->state, (char *)samples,frames,*channels);
+ equ_modifySamples_float(&supereq->state, (char *)samples,frames,fmt->channels);
return frames;
}