mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Audio cache could break readout
This commit is contained in:
parent
32fab79e09
commit
92ff2ff5d4
2 changed files with 5 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue