- added sounds for all hotlist sounds

This commit is contained in:
2025-10-20 11:32:45 +01:00
parent a152c15ec7
commit 0867b3b743
5 changed files with 63 additions and 18 deletions

View File

@@ -47,11 +47,11 @@ export default function SightingHistoryWidget({ className, title }: SightingHist
}, [state.NPEDsound]);
const soundSrcHotlist = useMemo(() => {
return getSoundFileURL(state?.hotlists?.[0]?.sound) ?? notification;
}, [state.hotlists]);
return getSoundFileURL(state?.hotlistSound) ?? notification;
}, [state?.hotlistSound]);
const { play: npedSound } = useSound(soundSrcNped, { volume: state.NPEDsoundVolume });
const { play: hotlistsound } = useSound(soundSrcHotlist);
const { play: hotlistsound } = useSound(soundSrcHotlist, { volume: state.hotlistSoundVolume });
const {
sightings,
setSelectedSighting,