fixed issue where Wav Decoder only returned 0's
This commit is contained in:
parent
17049220c2
commit
ad0138c489
@ -128,8 +128,7 @@ public class WavDecoder {
|
|||||||
|
|
||||||
for (int i = 0; i < samples.length; i++) {
|
for (int i = 0; i < samples.length; i++) {
|
||||||
try {
|
try {
|
||||||
|
float currentSample = 0;
|
||||||
int currentSample = 0;
|
|
||||||
for (int channel = 0; channel < getChannels(); channel++) {
|
for (int channel = 0; channel < getChannels(); channel++) {
|
||||||
currentSample += readLittleEndianShort();
|
currentSample += readLittleEndianShort();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user