<!-- Generated by scripts/gen-docs.mts from the JSDoc in registry/. Do not edit; run `pnpm run docs`. -->

# 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`.

```tsx
import { createChimeContext } from "@/lib/ouro/feedback";
```

## Example

```tsx
const context = useRef<AudioContext | null>(null);
const start = () => {
  context.current ??= createChimeContext();
  timer.start();
};
```

## Returns

`AudioContext | null`
