scope
This commit is contained in:
parent
b2ad274280
commit
c60f9d8d9d
1 changed files with 7 additions and 6 deletions
|
|
@ -50,13 +50,14 @@ function audioFingerprint() {
|
|||
compressor.connect(context.destination);
|
||||
oscillator.start()
|
||||
context.oncomplete = event => {
|
||||
const samples = event.renderedBuffer.getChannelData(0)};
|
||||
context.startRendering();
|
||||
const samples = event.renderedBuffer.getChannelData(0);
|
||||
let hash = 0;
|
||||
for (let i = 0; i < samples.length; ++i) {
|
||||
hash += Math.abs(samples[i]);
|
||||
}
|
||||
return hash;
|
||||
};
|
||||
context.startRendering();
|
||||
}
|
||||
|
||||
function canvasFingerprint() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue