Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix broken predictive beat detection

  • Loading branch information...
commit 299fdfc9703394da5d7fcc7c1206c7c865b9fa66 1 parent f94065b
@maysl authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/audiobuffer.c
View
4 src/audiobuffer.c
@@ -172,8 +172,8 @@ fische__audiobuffer_get (struct fische__audiobuffer* self)
double d_ratio = P->gets;
d_ratio /= P->puts;
uint_fast8_t ratio = floor (d_ratio + 0.5);
- if (ratio < 1)
- ratio = 1;
+ if (ratio < 2)
+ ratio = 2;
// how many samples to return
uint_fast32_t n_samples = P->buffer_size / 2 / ratio;
Please sign in to comment.
Something went wrong with that request. Please try again.