diff --git a/src/useAudioContext.tsx b/src/useAudioContext.tsx index 68114812d..d52efb0fc 100644 --- a/src/useAudioContext.tsx +++ b/src/useAudioContext.tsx @@ -209,7 +209,9 @@ export function useAudioContext( }, playSoundLooping: (name, delayS: number): (() => Promise) => { if (!audioBuffers[name]) { - throw Error(`Tried to play a sound that wasn't buffered (${name})`); + // We do not throw here. Instead we log and let the component life. Its not a fatal error if sounds are missing. + logger.debug(`Tried to play a sound that wasn't buffered (${name})`); + return async () => {}; } return playSoundLooping( audioContext,