From 500b9a07b93d6cd3e771edc5698e06d163da60f1 Mon Sep 17 00:00:00 2001 From: grm Date: Sat, 22 Feb 2025 02:36:27 +0200 Subject: a year of changes (web, better soundcard handling, biquad) --- src/osc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/osc.c') diff --git a/src/osc.c b/src/osc.c index c3c5d48..16e6894 100644 --- a/src/osc.c +++ b/src/osc.c @@ -57,7 +57,7 @@ osc_load_wav(osc_t * osc, const char * path) { SNDFILE* file; SF_INFO fileInfo; - int numSamplesRead; + int numSamplesRead = 0; // Open the WAV file file = sf_open(path, SFM_READ, &fileInfo); @@ -81,7 +81,8 @@ osc_load_wav(osc_t * osc, const char * path) // Read the WAV file into the buffer numSamplesRead = sf_readf_float(file, osc->data, fileInfo.frames); - + (void)numSamplesRead; + /* float max = -1000; */ /* float min = 1000; */ /* for (int i = 0; i < numSamplesRead; i++) { */ -- cgit v1.2.3