summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-12 18:30:07 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-12 18:30:17 +0100
commit720521515361ec850e12ac004c6812b059f82293 (patch)
treeda2f5e3e1d012a60a4855bbadc082b8d60531e45
parent192b3b3ce3d1f9b49dc8abb87f79cdf40e7a0e15 (diff)
converter: don't force-convert sample format
-rw-r--r--plugins/gtkui/converter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gtkui/converter.c b/plugins/gtkui/converter.c
index 291c9973..d949e27b 100644
--- a/plugins/gtkui/converter.c
+++ b/plugins/gtkui/converter.c
@@ -725,9 +725,9 @@ on_converter_ok_clicked (GtkButton *button,
outfmt.samplerate = outsr;
int n = deadbeef->pcm_convert (&fmt, dspbuffer, &outfmt, buffer, frames * sizeof (float) * fmt.channels);
- sz = n;//frames * outch * outbps / 8;
+ sz = n;
}
- else if (fileinfo->fmt.bps != outbps, 1) {
+ else if (fileinfo->fmt.bps != outbps) {
ddb_waveformat_t outfmt;
memcpy (&outfmt, &fileinfo->fmt, sizeof (outfmt));
outfmt.bps = outbps;
@@ -737,7 +737,7 @@ on_converter_ok_clicked (GtkButton *button,
int frames = sz / samplesize;
int n = deadbeef->pcm_convert (&fileinfo->fmt, buffer, &outfmt, dspbuffer, frames * samplesize);
memcpy (buffer, dspbuffer, n);
- sz = n;//frames * outch * outbps / 8;
+ sz = n;
}
outsize += sz;