From 8d96554ff1adbfa21ff5a6e406fd07bb93180e63 Mon Sep 17 00:00:00 2001 From: Yehor <20585619+satelllte@users.noreply.github.com> Date: Sun, 30 Jun 2024 17:58:50 +0300 Subject: [PATCH] PositionalAudio.loop = false --- src/core/PositionalAudio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PositionalAudio.tsx b/src/core/PositionalAudio.tsx index 746e8875e..ab76e540c 100644 --- a/src/core/PositionalAudio.tsx +++ b/src/core/PositionalAudio.tsx @@ -10,7 +10,7 @@ type Props = JSX.IntrinsicElements['positionalAudio'] & { } export const PositionalAudio: ForwardRefComponent = /* @__PURE__ */ React.forwardRef( - ({ url, distance = 1, loop = true, autoplay, ...props }: Props, ref) => { + ({ url, distance = 1, loop = false, autoplay, ...props }: Props, ref) => { const sound = React.useRef(null!) React.useImperativeHandle(ref, () => sound.current, []) const camera = useThree(({ camera }) => camera)