remove dither for now
This commit is contained in:
parent
0875c4eaa8
commit
05980a65c1
1 changed files with 2 additions and 1 deletions
|
@ -856,7 +856,8 @@ export class BrowserWindow {
|
||||||
return Math.max(-32768, Math.min(32768, v)); // clamp
|
return Math.max(-32768, Math.min(32768, v)); // clamp
|
||||||
}
|
}
|
||||||
|
|
||||||
let newaudio = quantization(leftpcm, rightpcm);
|
//let newaudio = quantization(leftpcm, rightpcm);
|
||||||
|
let newaudio = [leftpcm, rightpcm];
|
||||||
// console.log(newaudio.length);
|
// console.log(newaudio.length);
|
||||||
let pcmData = Buffer.from(new Int8Array(interleave16(Int16Array.from(newaudio[0], x => convert(x)), Int16Array.from(newaudio[1], x => convert(x))).buffer));
|
let pcmData = Buffer.from(new Int8Array(interleave16(Int16Array.from(newaudio[0], x => convert(x)), Int16Array.from(newaudio[1], x => convert(x))).buffer));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue