diff --git a/lib/modifiedAudioAPI.js b/lib/modifiedAudioAPI.js index 62d382f..77a5509 100644 --- a/lib/modifiedAudioAPI.js +++ b/lib/modifiedAudioAPI.js @@ -119,8 +119,8 @@ array[index] = value; }); if (prefs("useAudioCache")){ - floatCache[hash] = new window.Float32Array(array); - floatCache[hashing(array)] = new window.Float32Array(array); + floatCache[hash] = new array.constructor(array); + floatCache[hashing(array)] = floatCache[hash]; } } else { @@ -143,8 +143,8 @@ array[index] = rng(array[index], i); }); if (prefs("useAudioCache")){ - intCache[hash] = new window.Uint8Array(array); - intCache[hashing(array)] = new window.Uint8Array(array); + intCache[hash] = new array.constructor(array); + intCache[hashing(array)] = intCache[hash]; } } else { diff --git a/releaseNotes.txt b/releaseNotes.txt index 1ce1a0e..b096ee2 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -26,6 +26,7 @@ Version 0.5.9: - improved general performance when stack list is disabled - preventing double interception (increased performance and reduced detectability) - detection over navigator and DOMRect getters was possible + - audio cache could break readout known issues: - if a data URL is blocked the page action button does not appear