Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: correct Web Audio API method name for CyberCity lightning thunder effect

Adam Eivyc647068a2915
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 9dbe0453f5..7586917399 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -42,5 +42,6 @@
- **Route body destructuring**: Brain routes no longer crash when `req.body` is undefined
- **AI call logging**: Brain service logs when AI calls start and how long they take for easier debugging
- **HMR route errors**: Decline hot-module replacement on the route tree so Vite does a full reload instead of leaving React Router in a broken state on nested paths
+- **CyberCity lightning sound**: Fixed `createWaveShaperNode is not a function` crash — correct Web Audio API method is `createWaveShaper()`
## Removed
diff --git a/client/src/components/city/audio/citySoundEffects.js b/client/src/components/city/audio/citySoundEffects.js
index 6415ccc55a..4539e54370 100644
--- a/client/src/components/city/audio/citySoundEffects.js
+++ b/client/src/components/city/audio/citySoundEffects.js
@@ -67,7 +67,7 @@ const playLightning = (ctx, output) => {
const filter = ctx.createBiquadFilter();
filter.type = 'highpass';
filter.frequency.value = 400;
- const distortion = ctx.createWaveShaperNode();
+ const distortion = ctx.createWaveShaper();
const curve = new Float32Array(256);
for (let i = 0; i < 256; i++) {
const x = (i / 128) - 1;