- commit
- a563820799caa2e6f8ca9d2fe40ea38c44f54ee7
- parent
- 84d9a2e54c7db084e5c9e3d6de9029fcd0c8a9fa
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-12-18 10:16
fix rel_pos decleration
Diffstat
| M | beat.c | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/beat.c b/beat.c
@@ -21,6 +21,7 @@ struct context ctx; 21 21 void add_file_at_beat(const char *path, int beat) { 22 22 int ibs = 1024; 23 23 int pos = beat * frames_per_beat; -1 24 int rel_pos = pos - buf_cur * buf_len; 24 25 float fbuf[ibs]; 25 26 SF_INFO sfinfo; 26 27 SNDFILE *sndfile = sf_open(path, SFM_READ, &sfinfo); @@ -31,7 +32,6 @@ void add_file_at_beat(const char *path, int beat) { 31 32 while (1) { 32 33 int count = sf_readf_float(sndfile, fbuf, ibs); 33 34 count = MIN(count, frames - pos - 1);34 -1 int rel_pos = pos - buf_cur * buf_len;35 35 36 36 if (count <= 0) break; 37 37