chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't attempt to build debs for dapper (which is where the
[disorder]
/
lib
/
resample.c
diff --git
a/lib/resample.c
b/lib/resample.c
index 99879a4a87423558d3da1ff50364eadbc6e03442..c4c814e738c0fc16a3006fe31ce1dbbd10df2538 100644
(file)
--- a/
lib/resample.c
+++ b/
lib/resample.c
@@
-214,10
+214,8
@@
static size_t resample_put_sample(const struct resampler *rs,
*/
static void resample_prepare_input(const struct resampler *rs,
const uint8_t *bytes,
*/
static void resample_prepare_input(const struct resampler *rs,
const uint8_t *bytes,
- size_t n
byt
es,
+ size_t n
fram
es,
float *floats) {
float *floats) {
- size_t nframes = nbytes / (rs->input_bytes_per_frame);
-
while(nframes > 0) {
int n;
while(nframes > 0) {
int n;
@@
-261,7
+259,7
@@
size_t resample_convert(const struct resampler *rs,
float *input = xcalloc(nframesin * rs->output_channels, sizeof (float));
float *output = 0;
float *input = xcalloc(nframesin * rs->output_channels, sizeof (float));
float *output = 0;
- resample_prepare_input(rs, bytes, n
bytes
, input);
+ resample_prepare_input(rs, bytes, n
framesin
, input);
#if HAVE_SAMPLERATE_H
if(rs->state) {
/* A sample-rate conversion must be performed */
#if HAVE_SAMPLERATE_H
if(rs->state) {
/* A sample-rate conversion must be performed */