From 2271477376de6c8cfa3e61773d0bc25f5e8fee7b Mon Sep 17 00:00:00 2001 From: kkapsner Date: Tue, 18 Sep 2018 21:52:15 +0200 Subject: [PATCH] fakeUint8Array called forEachIndex with wrong parameters. Fixes #266 --- lib/modifiedAudioAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modifiedAudioAPI.js b/lib/modifiedAudioAPI.js index ca44f05..dccd39b 100644 --- a/lib/modifiedAudioAPI.js +++ b/lib/modifiedAudioAPI.js @@ -131,7 +131,7 @@ if (!cached){ var rate = getAudioFakeRate(array, prefs); var rng = randomSupply.getValueRng(rate, window); - forEachIndex(prefs, function(index, i){ + forEachIndex(array, prefs, function(index, i){ array[index] = rng(array[index], i); }); if (prefs("useAudioCache")){