Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 214ba1a

Browse files
committed
Change muting mechanizm
1 parent 2864b14 commit 214ba1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AudioVisualizer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const AudioVisualizer = ({ stream, muted = false, size = 46, height = 100
7676
ref={canvasParentRef}
7777
className="flex flex-row flex-nowrap justify-center border-4 z-10 rounded-md bg-gray-200"
7878
>
79-
{!muted && <audio autoPlay={true} ref={loadAudio} />}
79+
<audio autoPlay={true} ref={loadAudio} muted={muted} />
8080
<canvas ref={canvasRef} width={canvasWidth} height={height} />
8181
</div>
8282
);

0 commit comments

Comments
 (0)