Feedback
createChimeContext
Makes an audio context for chime, or returns null where the browser has no Web Audio. Call it from a click or key handler, where browsers allow sound to start, and pass it to every later chime.
import { createChimeContext } from "@/lib/ouro/feedback";Example
const context = useRef<AudioContext | null>(null);
const start = () => {
context.current ??= createChimeContext();
timer.start();
};Returns
AudioContext | null