diff options
author | waker <wakeroid@gmail.com> | 2011-05-21 11:39:06 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-21 11:39:06 +0200 |
commit | dbeaad223df623cf180063f184276a1d3d536fcd (patch) | |
tree | a7d5b9a681b8c445583b2b3eaac63e691c1868c7 /plugins | |
parent | 4c990ae154ac52070f90ba4ce6b1989b7ef0559b (diff) |
fixed regression in SRC plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dsp_libsrc/src.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dsp_libsrc/src.c b/plugins/dsp_libsrc/src.c index 76262f37..e654242a 100644 --- a/plugins/dsp_libsrc/src.c +++ b/plugins/dsp_libsrc/src.c @@ -89,7 +89,7 @@ int ddb_src_process (ddb_dsp_context_t *_src, float *samples, int nframes, int maxframes, ddb_waveformat_t *fmt, float *r) { ddb_src_libsamplerate_t *src = (ddb_src_libsamplerate_t*)_src; - int samplerate = src->samplerate; + float samplerate = src->samplerate; if (src->autosamplerate) { DB_output_t *output = deadbeef->get_output (); samplerate = output->fmt.samplerate; @@ -156,7 +156,7 @@ ddb_src_process (ddb_dsp_context_t *_src, float *samples, int nframes, int maxfr if (src_err) { const char *err = src_strerror (src_err) ; fprintf (stderr, "src_process error %s\n" - "srcdata.data_in=%p, srcdata.data_out=%p, srcdata.input_frames=%d, srcdata.output_frames=%d, srcdata.src_ratio=%f", err, src->srcdata.data_in, src->srcdata.data_out, (int)src->srcdata.input_frames, (int)src->srcdata.output_frames, src->srcdata.src_ratio); + "srcdata.data_in=%p, srcdata.data_out=%p, srcdata.input_frames=%d, srcdata.output_frames=%d, srcdata.src_ratio=%f\n", err, src->srcdata.data_in, src->srcdata.data_out, (int)src->srcdata.input_frames, (int)src->srcdata.output_frames, src->srcdata.src_ratio); return nframes; } |