From 9a6553e6f5a0f931aed04f5ae419ac72ad5a56ce Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 5 Feb 2024 00:23:07 -0500 Subject: [PATCH] fix sin in sound tone --- src/js/jagex2/sound/SoundTone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/jagex2/sound/SoundTone.ts b/src/js/jagex2/sound/SoundTone.ts index 70222943..4f2edbf4 100644 --- a/src/js/jagex2/sound/SoundTone.ts +++ b/src/js/jagex2/sound/SoundTone.ts @@ -42,7 +42,7 @@ export default class SoundTone { this.sin = new Int32Array(32768); for (let i: number = 0; i < 32768; i++) { - this.sin[1] = (Math.sin(i / 5215.1903) * 16384.0) | 0; + this.sin[i] = (Math.sin(i / 5215.1903) * 16384.0) | 0; } this.buffer = new Int32Array(220500); // 10s * 22050 KHz