summaryrefslogtreecommitdiffstats
path: root/src/osc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc.c')
-rw-r--r--src/osc.c5
1 files changed, 3 insertions, 2 deletions
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++) { */