Skip to content

Commit

Permalink
fix sin in sound tone
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Feb 5, 2024
1 parent 28f5212 commit 9a6553e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/jagex2/sound/SoundTone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a6553e

Please sign in to comment.