Add audio

This commit is contained in:
bmathews 2025-11-15 16:33:18 -08:00
parent 077207ca27
commit 7a4792e4e8
7 changed files with 243 additions and 4 deletions

View file

@ -27,6 +27,8 @@ export function InspectorControls({
setSpeedMultiplier,
fov,
setFov,
audioEnabled,
setAudioEnabled,
} = useSettings();
return (
@ -56,6 +58,17 @@ export function InspectorControls({
/>
<label htmlFor="fogInput">Fog?</label>
</div>
<div className="CheckboxField">
<input
id="audioInput"
type="checkbox"
checked={audioEnabled}
onChange={(event) => {
setAudioEnabled(event.target.checked);
}}
/>
<label htmlFor="audioInput">Audio?</label>
</div>
<div className="Field">
<label htmlFor="fovInput">FOV</label>
<input