projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f89ef4
)
src/io/source_sndfile.c: add missing floor in ratio comparison
author
Paul Brossier
<piem@piem.org>
Mon, 28 Nov 2016 17:48:03 +0000
(18:48 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 28 Nov 2016 17:48:03 +0000
(18:48 +0100)
src/io/source_sndfile.c
patch
|
blob
|
history
diff --git
a/src/io/source_sndfile.c
b/src/io/source_sndfile.c
index
133a02f
..
5f3817d
100644
(file)
--- a/
src/io/source_sndfile.c
+++ b/
src/io/source_sndfile.c
@@
-140,7
+140,7
@@
aubio_source_sndfile_t * new_aubio_source_sndfile(const char_t * path, uint_t sa
}
if (s->ratio > 1) {
// we would need to add a ring buffer for these
- if ( (uint_t)(s->input_hop_size * s->ratio + .5) != s->hop_size ) {
+ if ( (uint_t)
FLOOR
(s->input_hop_size * s->ratio + .5) != s->hop_size ) {
AUBIO_ERR("source_sndfile: can not upsample %s from %d to %d\n", s->path,
s->input_samplerate, s->samplerate);
goto beach;