Skip to content

Commit

Permalink
fft
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhutchen committed May 17, 2024
1 parent 21af60b commit 96990c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pages/sub/AudioVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const AudioVisualizer: React.FC<AudioVisualizerProps> = () => {
ctx.fillStyle = 'rgba(0, 0, 0,0.1)';
ctx.fillRect(0, 0, canvas.width, canvas.height);

const barWidth:number = 1;
const barWidth:number = Math.ceil(canvas.width / bufferLength);
let barHeight;
let x = 0;

Expand Down

0 comments on commit 96990c8

Please sign in to comment.