fix: move sounds outside suspense

This commit is contained in:
2026-06-01 15:42:17 -03:00
parent a0b416c412
commit 079986ebec
+18 -18
View File
@@ -93,25 +93,25 @@ export default function Fear() {
<Hallway /> <Hallway />
<TheCreature /> <TheCreature />
<Player /> <Player />
<AmbientSound
key="ambient-1"
url='fear/snd/ambience.mp3'
volume={isRustActive ? 0 : 1}
/>
<AmbientSound
key="ambient-2"
url='fear/snd/ambience2.mp3'
volume={isRustActive ? 1 : 0}
/>
{wasCaught ? <AmbientSound
key="ambient-glitch"
url='fear/snd/glitch.mp3'
volume={1}
/> : null}
</Suspense> </Suspense>
<AmbientSound
key="ambient-1"
url='fear/snd/ambience.mp3'
volume={isRustActive ? 0 : 1}
/>
<AmbientSound
key="ambient-2"
url='fear/snd/ambience2.mp3'
volume={isRustActive ? 1 : 0}
/>
{wasCaught ? <AmbientSound
key="ambient-glitch"
url='fear/snd/glitch.mp3'
volume={1}
/> : null}
</Canvas> </Canvas>
</>) </>)
} }