FOUND THAT CRAAAP, it worksgit add decoder.cpp !

This commit is contained in:
Blue 2019-01-23 00:59:27 +03:00
parent 7dc9c22fda
commit 88d69a503a

View File

@ -96,7 +96,7 @@ emscripten::val Decoder::decode(uint32_t count)
for (int j = 0; j < samplesPerFrame; ++j) { for (int j = 0; j < samplesPerFrame; ++j) {
for (int k = 0; k < channels; ++k) { for (int k = 0; k < channels; ++k) {
float value = mad_f_todouble(synth->pcm.samples[k][j]); float value = mad_f_todouble(synth->pcm.samples[k][j]);
chans[k].set(std::to_string(success * samplesPerFrame + j), emscripten::val(value)); chans[k].set(std::to_string(i * samplesPerFrame + j), emscripten::val(value));
} }
} }
} }