fixed issue where Wav Decoder only returned 0's

This commit is contained in:
Harrison Deng 2017-05-26 12:25:01 -05:00
parent 17049220c2
commit ad0138c489

View File

@ -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();
}