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 /streamer.c | |
parent | f3c8e6b96c752dcb921dba1f5ea847da97684a30 (diff) |
changed dsp plugin api to allow modification of any aspect of wave format
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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; |