From ad0138c489acba2a28a3476afb9063de9d440d0c Mon Sep 17 00:00:00 2001 From: Recrown Date: Fri, 26 May 2017 12:25:01 -0500 Subject: [PATCH] fixed issue where Wav Decoder only returned 0's --- core/src/zero1hd/wavedecoder/WavDecoder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/zero1hd/wavedecoder/WavDecoder.java b/core/src/zero1hd/wavedecoder/WavDecoder.java index c023f08..935de05 100755 --- a/core/src/zero1hd/wavedecoder/WavDecoder.java +++ b/core/src/zero1hd/wavedecoder/WavDecoder.java @@ -128,8 +128,7 @@ public class WavDecoder { for (int i = 0; i < samples.length; i++) { try { - - int currentSample = 0; + float currentSample = 0; for (int channel = 0; channel < getChannels(); channel++) { currentSample += readLittleEndianShort(); }