summaryrefslogtreecommitdiff
path: root/streamer.c
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 /streamer.c
parentf3c8e6b96c752dcb921dba1f5ea847da97684a30 (diff)
changed dsp plugin api to allow modification of any aspect of wave format
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/streamer.c b/streamer.c
index 4f8b2ebc..dcc36fa3 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1384,16 +1384,13 @@ streamer_read_async (char *bytes, int size) {
int nframes = inputsize / inputsamplesize;
ddb_dsp_context_t *dsp = dsp_chain;
- int samplerate = fileinfo->fmt.samplerate;
- int channels = dspfmt.channels;
+ dspfmt.samplerate = fileinfo->fmt.samplerate;
while (dsp) {
if (dsp->enabled) {
- nframes = dsp->plugin->process (dsp, (float *)tempbuf, nframes, &samplerate, &channels);
+ nframes = dsp->plugin->process (dsp, (float *)tempbuf, nframes, &dspfmt);
}
dsp = dsp->next;
}
- dspfmt.samplerate = samplerate;
- dspfmt.channels = channels;
int n = pcm_convert (&dspfmt, tempbuf, &output->fmt, bytes, nframes * dspsamplesize);
bytesread = n;