From 88d69a503a50a439001b8331fe27672296c7c3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=93=D1=83=D0=B1=D0=B8=D1=87?= Date: Wed, 23 Jan 2019 00:59:27 +0300 Subject: [PATCH] FOUND THAT CRAAAP, it worksgit add decoder.cpp ! --- decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder.cpp b/decoder.cpp index 0a3bf58..450762c 100644 --- a/decoder.cpp +++ b/decoder.cpp @@ -96,7 +96,7 @@ emscripten::val Decoder::decode(uint32_t count) for (int j = 0; j < samplesPerFrame; ++j) { for (int k = 0; k < channels; ++k) { 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)); } } }