- commit
- 305f891982da5efbafccc49bc7bd8a14dd437131
- parent
- c31a5c76f77e32c9e92995da30119f5c974cdf08
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-12-22 07:28
turn assert comment into code
Diffstat
| M | beat.c | 5 | +++-- |
1 files changed, 3 insertions, 2 deletions
diff --git a/beat.c b/beat.c
@@ -1,7 +1,8 @@ 1 1 #include <stdlib.h> 2 2 #include <string.h>3 -1 #include <sndfile.h>-1 3 #include <assert.h> 4 4 #include <math.h> -1 5 #include <sndfile.h> 5 6 6 7 #define MIN(A, B) ((A) < (B) ? (A) : (B)) 7 8 #define BUFSIZE (1 << 12) @@ -35,7 +36,7 @@ void add_file_at_beat(const char *path, int beat) { 35 36 36 37 struct ring *cur = first; 37 3838 -1 // assert sfinfo.samplerate == samplerate-1 39 assert(sfinfo.samplerate == samplerate); 39 40 40 41 while (1) { 41 42 int count = sf_readf_float(infile, fbuf, ibs);