game-audio-and-haptics
Builds game sound and vibration - SoundRecipe synth banks, ambient AudioContext (react-native-audio-api 0.13.6), voice limits, tap/win/lose feedback, haptic cues, 40 ms throttle, WAV preview. Use when adding or tuning sounds, SFX, music or haptics. Not for Settings rows (settings-and-preferences).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- game-audio-and-haptics
- description
- Builds game sound and vibration - SoundRecipe synth banks, ambient AudioContext (react-native-audio-api 0.13.6), voice limits, tap/win/lose feedback, haptic cues, 40 ms throttle, WAV preview. Use when adding or tuning sounds, SFX, music or haptics. Not for Settings rows (settings-and-preferences).
02 资源文件 500
- 资产文件assets/shared.json956 B
- 脚本examples/line-siege/board/build-timeline.ts5.6 KB
- 脚本examples/line-siege/board/monster-tracks.ts4.2 KB
- 脚本examples/line-siege/sounds/sound-bank.test.ts2.5 KB
- 脚本examples/line-siege/sounds/sound-bank.ts2.8 KB
- 参考文档examples/sound-slice-report.md1.2 KB
- 参考文档references/audio-architecture.md23.3 KB
- 参考文档references/haptics.md7.3 KB
- 参考文档references/sound-design.md9.7 KB
- 脚本scripts/check-audio-haptics.mjs35.7 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/check-sound-banks.mjs12.7 KB
- 脚本scripts/lib/synth.mjs8.8 KB
- 脚本scripts/lib/ts-literal.mjs6.3 KB
- 脚本scripts/selftest.mjs765 B
- 脚本templates/__mocks__/react-native-audio-api.ts661 B
- 脚本templates/apps/__GAME_ID__/src/sounds/sound-bank.test.ts712 B
- 脚本templates/apps/__GAME_ID__/src/sounds/sound-bank.ts1.9 KB
- 其他templates/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他templates/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 脚本templates/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本templates/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本templates/packages/shell/src/config/audio-config.ts840 B
- 脚本templates/packages/shell/src/services/audio/admit-voice.test.ts2.2 KB
- 脚本templates/packages/shell/src/services/audio/admit-voice.ts2.6 KB
- 脚本templates/packages/shell/src/services/audio/audio-api-audio-adapter.android.test.ts2.2 KB
- 脚本templates/packages/shell/src/services/audio/audio-api-audio-adapter.test.ts4.2 KB
- 脚本templates/packages/shell/src/services/audio/audio-api-audio-adapter.ts6.5 KB
- 脚本templates/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本templates/packages/shell/src/services/audio/compose-sound-bank.test.ts1.1 KB
- 脚本templates/packages/shell/src/services/audio/compose-sound-bank.ts1.0 KB
- 脚本templates/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本templates/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本templates/packages/shell/src/services/audio/recording-feedback.test.ts2.3 KB
- 脚本templates/packages/shell/src/services/audio/recording-feedback.ts2.4 KB
- 脚本templates/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本templates/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本templates/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本templates/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本templates/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本templates/packages/shell/src/services/audio/ui-feedback.test.ts1.4 KB
- 脚本templates/packages/shell/src/services/audio/ui-feedback.ts1.6 KB
- 脚本templates/packages/shell/src/services/audio/use-audio-lifecycle.test.ts2.4 KB
- 脚本templates/packages/shell/src/services/audio/use-audio-lifecycle.ts1.0 KB
- 脚本templates/packages/shell/src/services/haptics/expo-haptics-adapter.android.test.ts6.5 KB
- 脚本templates/packages/shell/src/services/haptics/expo-haptics-adapter.test.ts2.5 KB
- 脚本templates/packages/shell/src/services/haptics/expo-haptics-adapter.ts3.5 KB
- 脚本templates/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本templates/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本templates/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本templates/packages/shell/src/services/haptics/should-pulse.test.ts777 B
- 脚本templates/packages/shell/src/services/haptics/should-pulse.ts632 B
- 脚本templates/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本templates/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本templates/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 脚本tests/build-fixtures.mjs31.7 KB
- 其他tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/.gitignore43 B
- 资产文件tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/assets/sounds/boom.mp320 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/package.json120 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/EXPECT.txt51 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/shell-slice.json96 B
- 资产文件tests/fixtures/check-audio-haptics-game-first/bad-audio-asset-in-app/skills/some-skill/tests/fixtures/bad-asset/apps/x/assets/boom.mp311 B
- 其他tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/apps/demo-game/package.json120 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/EXPECT.txt195 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/shell-slice.json96 B
- 资产文件tests/fixtures/check-audio-haptics-game-first/bad-game-stage-missing/skills/some-skill/tests/fixtures/bad-asset/apps/x/assets/boom.mp311 B
- 其他tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/apps/demo-game/package.json120 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/EXPECT.txt195 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/shell-slice.json85 B
- 资产文件tests/fixtures/check-audio-haptics-game-first/bad-slice-has-shell-app/skills/some-skill/tests/fixtures/bad-asset/apps/x/assets/boom.mp311 B
- 其他tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/apps/demo-game/package.json161 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/EXPECT.txt61 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/shell-slice.json96 B
- 资产文件tests/fixtures/check-audio-haptics-game-first/bad-wrong-pin-still-fails/skills/some-skill/tests/fixtures/bad-asset/apps/x/assets/boom.mp311 B
- 其他tests/fixtures/check-audio-haptics-game-first/good/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/good/apps/demo-game/package.json120 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/good/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics-game-first/good/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics-game-first/good/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 参考文档tests/fixtures/check-audio-haptics-game-first/good/shell-slice.json96 B
- 资产文件tests/fixtures/check-audio-haptics-game-first/good/skills/some-skill/tests/fixtures/bad-asset/apps/x/assets/boom.mp311 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/__mocks__/react-native-audio-api.ts661 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-asset/.gitignore43 B
- 资产文件tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/assets/sounds/boom.mp320 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/package.json191 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-asset/EXPECT.txt71 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-asset/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/language-change.ts421 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 其他tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/shell-app.tsx1022 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/start-shell.ts360 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/config/audio-config.ts840 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/config/shell-plugins.ts327 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/game-host/finish-run.ts420 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/i18n/direction.ts298 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/screens/settings/on-setting-toggled.ts393 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/admit-voice.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/admit-voice.ts2.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/audio-api-audio-adapter.android.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/audio-api-audio-adapter.test.ts4.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/audio-api-audio-adapter.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/compose-sound-bank.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/compose-sound-bank.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/recording-feedback.test.ts2.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/recording-feedback.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/ui-feedback.test.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/ui-feedback.ts1.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/use-audio-lifecycle.test.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/audio/use-audio-lifecycle.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/expo-haptics-adapter.android.test.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/expo-haptics-adapter.test.ts2.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/expo-haptics-adapter.ts3.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/should-pulse.test.ts777 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/services/haptics/should-pulse.ts632 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/ui/raised-surface.tsx376 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-asset/packages/shell/src/ui/toggle-row.tsx278 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-asset/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/__mocks__/react-native-audio-api.ts661 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus-type/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus-type/apps/demo-game/package.json191 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus-type/EXPECT.txt105 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus-type/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/language-change.ts421 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/shell-app.tsx1022 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/start-shell.ts360 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/config/audio-config.ts840 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/config/shell-plugins.ts327 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/game-host/finish-run.ts420 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/i18n/direction.ts298 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/screens/settings/on-setting-toggled.ts393 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/admit-voice.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/admit-voice.ts2.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/audio-api-audio-adapter.android.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/audio-api-audio-adapter.test.ts4.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/audio-api-audio-adapter.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/compose-sound-bank.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/compose-sound-bank.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/recording-feedback.test.ts2.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/recording-feedback.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/ui-feedback.test.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/ui-feedback.ts1.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/use-audio-lifecycle.test.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/audio/use-audio-lifecycle.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/expo-haptics-adapter.android.test.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/expo-haptics-adapter.test.ts2.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/expo-haptics-adapter.ts3.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/should-pulse.test.ts777 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/services/haptics/should-pulse.ts632 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/ui/raised-surface.tsx376 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/shell/src/ui/toggle-row.tsx278 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus-type/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/__mocks__/react-native-audio-api.ts661 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus/apps/demo-game/package.json191 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus/EXPECT.txt100 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/language-change.ts421 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/shell-app.tsx1022 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/start-shell.ts360 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/config/audio-config.ts840 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/config/shell-plugins.ts327 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/game-host/finish-run.ts420 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/i18n/direction.ts298 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/screens/settings/on-setting-toggled.ts393 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/admit-voice.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/admit-voice.ts2.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/audio-api-audio-adapter.android.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/audio-api-audio-adapter.test.ts4.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/audio-api-audio-adapter.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/compose-sound-bank.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/compose-sound-bank.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/recording-feedback.test.ts2.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/recording-feedback.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/ui-feedback.test.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/ui-feedback.ts1.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/use-audio-lifecycle.test.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/audio/use-audio-lifecycle.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/expo-haptics-adapter.android.test.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/expo-haptics-adapter.test.ts2.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/expo-haptics-adapter.ts3.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/should-pulse.test.ts777 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/services/haptics/should-pulse.ts632 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/ui/raised-surface.tsx376 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-focus/packages/shell/src/ui/toggle-row.tsx278 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-focus/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/__mocks__/react-native-audio-api.ts661 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-import/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-import/apps/demo-game/package.json191 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-import/EXPECT.txt90 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-import/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/language-change.ts421 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 其他tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/shell-app.tsx1022 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/start-shell.ts360 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/config/audio-config.ts840 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/config/shell-plugins.ts327 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/game-host/finish-run.ts420 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/i18n/direction.ts298 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/screens/home/home-sound.ts156 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/screens/settings/on-setting-toggled.ts393 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/admit-voice.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/admit-voice.ts2.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/audio-api-audio-adapter.android.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/audio-api-audio-adapter.test.ts4.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/audio-api-audio-adapter.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/compose-sound-bank.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/compose-sound-bank.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/recording-feedback.test.ts2.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/recording-feedback.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/ui-feedback.test.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/ui-feedback.ts1.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/use-audio-lifecycle.test.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/audio/use-audio-lifecycle.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/expo-haptics-adapter.android.test.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/expo-haptics-adapter.test.ts2.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/expo-haptics-adapter.ts3.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/should-pulse.test.ts777 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/services/haptics/should-pulse.ts632 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/ui/raised-surface.tsx376 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-import/packages/shell/src/ui/toggle-row.tsx278 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-import/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/__mocks__/react-native-audio-api.ts661 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-pin/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-pin/apps/demo-game/package.json192 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-pin/EXPECT.txt42 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-pin/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/language-change.ts421 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 其他tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/shell-app.tsx1022 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/start-shell.ts360 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/config/audio-config.ts840 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/config/shell-plugins.ts327 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/game-host/finish-run.ts420 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/i18n/direction.ts298 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/screens/settings/on-setting-toggled.ts393 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/admit-voice.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/admit-voice.ts2.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/audio-api-audio-adapter.android.test.ts2.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/audio-api-audio-adapter.test.ts4.2 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/audio-api-audio-adapter.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/audio-port.ts1.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/compose-sound-bank.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/compose-sound-bank.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/fake-audio.test.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/fake-audio.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/recording-feedback.test.ts2.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/recording-feedback.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/synth/recipe-problems.test.ts1.9 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/synth/recipe-problems.ts4.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/synth/synthesize-recipe.test.ts3.3 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/synth/synthesize-recipe.ts3.7 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/synth/ui-sounds.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/ui-feedback.test.ts1.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/ui-feedback.ts1.6 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/use-audio-lifecycle.test.ts2.4 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/audio/use-audio-lifecycle.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/expo-haptics-adapter.android.test.ts6.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/expo-haptics-adapter.test.ts2.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/expo-haptics-adapter.ts3.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/fake-haptics.test.ts559 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/fake-haptics.ts333 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/haptics-port.ts515 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/should-pulse.test.ts777 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/services/haptics/should-pulse.ts632 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/ui/raised-surface.tsx376 B
- 其他tests/fixtures/check-audio-haptics/bad-audio-pin/packages/shell/src/ui/toggle-row.tsx278 B
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/tooling/src/audio/encode-wav.test.ts1.0 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/tooling/src/audio/encode-wav.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-audio-pin/packages/tooling/src/audio/render-sfx-wav.ts1.5 KB
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/__mocks__/react-native-audio-api.ts661 B
- 其他tests/fixtures/check-audio-haptics/bad-banned-package/.gitignore43 B
- 参考文档tests/fixtures/check-audio-haptics/bad-banned-package/apps/demo-game/package.json220 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/apps/demo-game/src/board/build-timeline.ts1.1 KB
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/apps/demo-game/src/board/on-events.ts403 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/apps/demo-game/src/index.ts236 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/apps/demo-game/src/sounds/sound-bank.test.ts710 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/apps/demo-game/src/sounds/sound-bank.ts1.9 KB
- 参考文档tests/fixtures/check-audio-haptics/bad-banned-package/EXPECT.txt53 B
- 参考文档tests/fixtures/check-audio-haptics/bad-banned-package/package.json87 B
- 参考文档tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/package.json134 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/language-change.ts421 B
- 其他tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/press-feedback-context.test.tsx1002 B
- 其他tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/press-feedback-context.tsx1.3 KB
- 其他tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/shell-app.tsx1022 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/start-shell.ts360 B
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-audio-haptics/bad-banned-package/packages/shell/src/app/use-is-app-active.ts657 B
03 SKILL.md 正文
Game audio and haptics
Every Pocket Arcade sound is synthesised in code from a literal recipe and played through one ambient AudioContext behind AudioPort; every vibration is a cue from a fixed table played through HapticsPort, gated by the Vibration setting and throttled. This skill builds the Shell side once, each game's sound set, and the checks that prove both.
Rules that must hold
- Pin
react-native-audio-apiat exactly0.13.6in every app and configure its plugin with all five defaults overridden (iosBackgroundMode: false,androidPermissions: [],androidForegroundService: false,disableFFmpeg: true,disableStaticExternalLibs: true). Never installexpo-audio,expo-avor another audio or haptics library. Why: the library is pre-1.0 and minors break APIs; the defaults add background audio, Android permissions and streaming downloads. - Only
audio-api-audio-adapter.tsimportsreact-native-audio-api, and onlyexpo-haptics-adapter.tsimportsexpo-haptics. Everything else usesAudioPortandHapticsPort; tests usecreateFakeAudio()andcreateFakeHaptics(). Why: one file changes on a library bump, and every other test runs in milliseconds without native code. - Create exactly one
AudioContext, inside the adapter, aftersetAudioSessionOptions({ iosCategory: 'ambient', ... }); observe interruptions only on iOS and request no audio focus on Android. Why:ambientrespects the silent switch and mixes with the player's own music; the session must be set before the context exists; on AndroidobserveAudioInterruptionsrequests audio focus, which pauses the player's music (spec 8.7). - Every sound is a literal
SoundRecipethat passesrecipeProblems(finite, peak 0.05-0.9, first sample < 0.05, last < 0.01, later layers fade in over at least 1 ms, 10-1500 ms, music up to 30 s). No audio files, nodecodeAudioDatawith a URL, nocreateStreamer, no network. Why: no licences to track, no clicks or clipping, byte-identical renders everywhere. - A game's sounds live in
apps/<game>/src/sounds/sound-bank.tsasSOUND_BANK, with kebab-case noun ids; every id is cued and every cue names a bank id. Theui.namespace belongs to the Shell'sUI_SOUNDS; the bank reaches the Shell aspresentation.soundsand is loaded withcomposeSoundBank. Why: a cue with a typo is silent in production, and aui.id would replace a menu sound. - Keep the voice policy: three category gains (
sfxanduifollow Sound effects,musicfollows Music), slider mapped tovolume², 50 ms gain ramps, at most 8 overlapping voices, the same sound at most once per 30 ms (or itsminIntervalMs, at most 1000 ms). Voices are intervals on the audio clock andcancelPendingreleases the ones it stops. Why: even loudness, no clicks, no pile-ups when a cascade fires many cues, and no sound silently lost after a fast move. - Music is off by default; a game without a sound in category
musichides the S11 Music rows (the switch and the volume) and the Pause (S6) Music key; never callactivelyReclaimSession. The rule ishasMusicOf(module)(game-host/game-facts.ts, read asGameHost.hasMusic), and visual parity compares such a game against the design-derived no-music reference variants (s11-settings--no-music,s6-pause--no-music) that it picks fromparity/game-facts.json("hasMusic": false; Line Siege has no music). Why: game music must never play over the player's music unless they turn it on, the library cannot report other playing audio, and a hidden row compared with the base reference would fail every S11 and S6 capture. - Fire sounds and haptics from timeline cues (turn-based) or from drained events on JS (real-time), scheduled on the audio clock and cancelled on fast-forward, pause and screen exit. Never from a sim, a
'worklet'module or per tick. Why: sample-accurate sync with the animation, and the UI thread never touches a port. - Mount
useAudioLifecycleonce, inShellApp: the context runs only while the app is active and no full-screen ad plays; interruptions suspend and resume it;await audio.dispose()before everyrestartForDirection/reloadAppAsync(the startup check instart-shell.tsruns before any audio exists and needs nothing). Why: no sound in the background or over ads, and the native engine closes before a JS reload. - Haptics follow the cue table, only when Vibration is on and at least 40 ms after the previous pulse, and every native call ends with
.catch(() => undefined);isSupportedis false on iPad. UI buttons use no haptics exceptselectionon toggles. Why: bursts feel like a buzz, Low Power Mode makes haptics a silent no-op, and iPads cannot vibrate. On Android the adapter plays the table's Android column throughperformAndroidHapticsAsync(View haptic feedback, never the Vibrator calls), and a type newer than the phone's API level (Segment_Tickbefore 34,Confirm/Rejectbefore 30) is replaced by one every level has, because expo-haptics rejects it and the pulse would be silently lost. - The Shell's own moments go through
playUiFeedback: every button press playsui.tap(usePressFeedbackin the Pressable hosts), a toggleui.toggle+selection, a decided resultui.win+successorui.lose+error. Why: the product asks for sound on button taps, wins and losses and a pulse on wins and losses; without these call sites the UI sounds load and never play. - Add no microphone purpose string up front. Only if an App Store upload reports ITMS-90683, set
iosMicrophonePermission(localised, with a comment naming ITMS-90683). Why: the app never records; an unneeded purpose string invites review questions. - A sound set is done when its WAV previews are rendered and listed for the owner, never waiting for the listening. Render
reports/sfx/<game-id>/and list the listening and the feel on an iPhone in the report under "Owner steps (not blocking)"; tuning follows the owner's answer whenever it comes (owner decision O6, 2026-09-30). Test builds record every sound and haptic the app asks for in the perf log (recording-feedback.ts), so the simulator proves the win sound and the success haptic were asked for. Why: Claude cannot hear and the simulator has no Taptic Engine; a green gate proves a sound is clean and the evidence proves it was requested, but only the owner can say it is right, and the owner decided that this check never blocks.
Workflow
- Pick the job. First Shell setup: steps 2-4. A game's sound set: steps 5-8. Tuning one sound: steps 6-8. Bumping the library: step 9. Always finish with step 10.
- Shell setup, read first. Read references/audio-architecture.md (library, port, adapter, lifecycle, music, wiring, testing) and references/haptics.md (cue table, throttle, devices).
- Copy the Shell files at Shell step 5 (the services behind ports). The next workflow step's wiring follows the Shell build order: the composition root and the boot at Shell step 7 (with
app/press-feedback-context.tsxand its test, which the Pressable hosts of that step import), the plugin line at step 8, the toggle handlers with S6 and S11 at step 9. Runnode ${CLAUDE_SKILL_DIR}/scripts/check-audio-haptics.mjs .from the repo root. In a game-first repo (shell-slice.jsonwith"screens": [], no Shell app yet) only the game stage is due (the ports and their fakes with tests, thesynth/files,use-is-app-active.tswith its test,packages/tooling/src/audio/); the Shell wiring printsSKIP(a pass) until the Shell app exists, and steps 4 and 9-11 of the rules follow with it. For everyaudio-file-missingline, copytemplates/<path>to<path>verbatim (tests included): theservices/audio/andservices/audio/synth/files,services/haptics/,config/audio-config.ts,__mocks__/react-native-audio-api.tsandpackages/tooling/src/audio/. Copypackages/shell/src/app/use-is-app-active.tsonly if it does not exist yet. These needpackages/game-kit/src/rng/sfc32.tsandtimeline/track.ts(game-rules-engine,board-rendering-skia). - Install and wire. From the repo root:
npm install react-native-audio-api@0.13.6 --save-exact -w apps/<a> -w apps/<b> ...(every app at once); inside each app:npx expo install expo-haptics; add both topackages/shell/package.jsonpeerDependenciesas"*". ImportAUDIO_API_PLUGINfrom./audio-config.tsintowithShell's plugin list and addapps/*/sfx-preview/to the root.gitignore. In the composition root create one audio adapter (reportError→errorLog.record('audio', error)),load(composeSoundBank(game.presentation.sounds)), create the haptics adapter withisEnabledread at call time andClockPort.nowMs, and inShellAppmountuseAudioLifecycleand wrap the tree inPressFeedbackProvider(snippets in the architecture reference). Wire the UI feedback ("UI feedback" in the architecture reference):usePressFeedback()in the Pressable hosts (raised-surface.tsx,quiet-button.tsx,list-row.tsx),playUiFeedback(services, 'toggle')in toggle handlers, andfeedback: debugFeedbackOf(() => debug, { audio, haptics })forcreateGameHost(the real ports in a store build, the debug parts' recorders in a test build), whose session controller plays'win'/'lose'for the deciding move (game-host-integration). Make every "Restart to apply" pathawait audio.dispose()beforerestartForDirection. - Plan the game's sound set. Read references/sound-design.md. Write the event → sound → haptic table (like the Line Siege one there): one cue per visible event, 3-6 effects, the most repeated action quietest, loud and long sounds only for rare moments. Choose haptics from the cue table.
- Write the bank test-first. Copy
templates/apps/__GAME_ID__/src/sounds/(bank and test) toapps/<game-id>/src/sounds/(the pilot's bank at Shell step 7, with its board and game module; a new game's at game step 10, art and sounds), replace__GAME_ID__, write one literal recipe per sound from the design guide, and runnpx jest apps/<game-id>/src/sounds --ci --selectProjects unit --coverage --collectCoverageFrom='apps/<game-id>/src/sounds/**/*.ts' --coverageThreshold='{}'until green (paths first:--selectProjectsswallows every following word as a project name and would run the whole suite). Imitate examples/line-siege/. - Cue and wire. Add
cue: { sound: '<id>', haptic: '<cue>' }to the track that shows each event inbuildTimeline(real-time games: map drained event kinds toaudio.play('<id>')/haptics.playin the host, ids written as literals), and setpresentation.sounds: SOUND_BANKin the game module. Runnpx tsc -p apps/<game-id> --noEmit,npx eslint --max-warnings 0andnpx prettier --checkon the changed files. - Render and list for listening. Run
node ${CLAUDE_SKILL_DIR}/scripts/check-sound-banks.mjs . --game <game-id> --wav-dir reports/sfx(writesreports/sfx/<game-id>/<id>.wav; the repo'srender-sfx-wav.tswrites the same bytes toapps/<game-id>/sfx-preview/), fix everyFAILline, and list the listening in the report under "Owner steps (not blocking)" with the questions in the architecture reference ("What only the owner can check"), as examples/sound-slice-report.md does. Carry on; when the owner answers, tune one number at a time and re-render. For simulator evidence, test builds wrap the ports withrecordAudioFeedbackandrecordHapticsFeedback(templates/packages/shell/src/services/audio/recording-feedback.ts; e2e-maestro wires them increateDebugParts), and the E2E run reads thefeedbackentries of the level-1 flow (ui.win,success). - Bumping
react-native-audio-api: follow "Before any bump" in the architecture reference (release notes, plugin defaults, Jest mock, adapter tests, simulator smoke test, owner listening check), then updateAUDIO_API_VERSIONinscripts/check-audio-haptics.mjsand the templates' comments together. - Run the checks (run, fix, rerun until both print
RESULT: PASS):node ${CLAUDE_SKILL_DIR}/scripts/check-sound-banks.mjs .thennode ${CLAUDE_SKILL_DIR}/scripts/check-audio-haptics.mjs .. EveryFAILline names the file, the rule and the fix. Two rules wait for a later Shell build step and printSKIP(a pass) until then:audio-pluginuntilpackages/shell/src/config/shell-plugins.tsexists (Shell step 8, the one native plugin list) andui-feedbackuntilpackages/shell/src/app/start-shell.tsexists (Shell step 7). From step 7 the tap, win and lose parts ofui-feedbackare strict; its toggle part prints a sliceSKIPwhileshell-slice.jsonlists neither S11 nor S6, whose settings actions and pause model play the toggle (Shell step 9):SKIP packages/shell/src/services/audio/ui-feedback.ts [ui-feedback] S11 not in shell-slice.json (nor S6): the toggle feedback (ui.toggle) is played by S11's settings actions and S6's pause model. Once either screen is in the slice (or there is noshell-slice.json) it is strict. Thennpx jest packages/shell/src/services apps/<game-id>/src/sounds packages/tooling/src/audio --ci --selectProjects unit --coverage --collectCoverageFrom='packages/shell/src/services/**/*.ts' --coverageThreshold='{}'(paths first; onlynpm run test:coveragejudges the thresholds).
Definition of done
- [ ] The Shell audio and haptics files, the root mock and the WAV preview exist as in
templates/, and their tests pass (voice policy, adapter on the mock, lifecycle, recipes, bank composition, throttle, haptic table, WAV header). - [ ] Every app lists
react-native-audio-api0.13.6exactly andexpo-haptics~57.x; no banned audio package is installed;AUDIO_API_PLUGINis inwithShell; no microphone purpose string without ITMS-90683. - [ ] Each game with sounds has
SOUND_BANK(literal recipes, kebab ids), a greensound-bank.test.ts,presentation.sounds: SOUND_BANK, and every cue names a bank id. - [ ] Music is off by default; the Music row is hidden for games without music; the Vibration row is hidden when
isSupportedis false. - [ ]
useAudioLifecycleis mounted once;audio.dispose()is awaited before every reload. - [ ] Button presses play
ui.tap(the Pressable hosts runusePressFeedback), togglesui.toggle+selection, resultsui.win+success/ui.lose+error. - [ ] The WAV previews are rendered (
reports/sfx/<game-id>/) and listed in the report under "Owner steps (not blocking)", with the feel on an iPhone; nothing waits for the answer, and tuning follows it whenever it comes. - [ ]
recording-feedback.ts(+ test) is in place, so a test build's perf log shows the win sound (ui.win) and the success haptic (success) the level-1 flow asked for. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-sound-banks.mjs .printsRESULT: PASS. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-audio-haptics.mjs .printsRESULT: PASS(SKIPlines for the Shell wiring count as a pass in a game-first repo)
Anti-patterns
- Shipping a recorded or downloaded sound "just this once". It brings a licence, a file the checker rejects and a network path; write a recipe from the design guide instead.
- Creating an
AudioContextin a screen or hook. Two contexts fight over the session and double the memory; the adapter owns the only one. - Calling
audio.playfromuseEffectin the Game screen for board events. The sound drifts from the animation; put the cue on the track so it is scheduled on the audio clock and cancelled with the scene. - A cue on every particle track. One visible event, one cue; the voice limit drops the rest and the mix turns to noise.
- Pulsing on every button press. Buttons are silent to the hand; only toggles use
selection. audio.play('ui.tap')in each screen's handlers. One forgotten handler is a silent button; the Pressable hosts play the tap for every button throughusePressFeedback.- Turning music on by default to make the game feel livelier. It plays over the player's music; that is an owner decision needing the silence-hint module first.
- Tuning by reading numbers. A green quality gate only proves a sound is clean; render the WAVs and list them for the owner to listen.
- Holding a slice or a release for the owner's listening. It is an owner step that never blocks (O6); list it and go on.
- Recording feedback in a store build. The recorders are test-only (through the test-only entry); a store build's ports are the plain adapters.
- Raising
MAX_VOICES, lowering the 40 ms throttle or widening the gate to make a check pass. Fix the recipe or the cue instead; the limits exist because the failures are audible. - Importing
expo-hapticsin a test. Mock it with a factory and read it withjest.requireMock; tests never import vendor SDKs.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/audio-architecture.md | Versions, plugin, port, adapter, voice policy, bank composition, lifecycle, music, composition-root wiring, testing, owner checks, licence rows, known issues | Workflow steps 2-4 and 9 |
| references/sound-design.md | Recipe model, the quality gate, sound design guide, ids and banks, cues, real-time sounds, WAV preview and tuning, the Line Siege table | Workflow steps 5-8 |
| references/haptics.md | Haptics port, the cue table (iOS and Android columns), rules of use, throttle, iPad, older Android and Low Power Mode, tests | Workflow steps 2 and 5 |
templates/packages/shell/src/services/audio/ |
Port, adapter (+ test, + audio-api-audio-adapter.android.test.ts for the unit-android project: no audio focus), voice policy (+ test), fake (+ test), lifecycle hook (+ test), composeSoundBank (+ test), playUiFeedback (+ test), and the test-only recordAudioFeedback / recordHapticsFeedback decorators (recording-feedback.ts, + test: each cue passes through and is appended to the perf log as { kind: 'feedback', label, atEpochMs }) |
Step 3 (copy verbatim); the recorders reach test builds through e2e-maestro's createDebugParts |
templates/packages/shell/src/services/audio/synth/ |
Synth (+ test), recipeProblems quality gate (+ test), UI_SOUNDS |
Step 3 (copy verbatim) |
templates/packages/shell/src/services/haptics/ |
Port, shouldPulse (+ test), expo-haptics adapter (+ test, + expo-haptics-adapter.android.test.ts for the unit-android project), fake (+ test) |
Step 3 (copy verbatim) |
| templates/packages/shell/src/config/audio-config.ts | AUDIO_API_PLUGIN with every default overridden |
Step 4 |
| templates/packages/shell/src/app/use-is-app-active.ts | Foreground check shared with the board lifecycle; synced from the library, do not edit here | Step 3, only if missing |
| templates/packages/shell/src/app/use-is-app-active.test.ts | Its test (AppState changes, unsubscribe on unmount); synced from the library | Step 3, with the hook |
| templates/packages/shell/src/app/press-feedback-context.tsx | PressFeedbackProvider/usePressFeedback, the one press-feedback context (in app/ so ui/ may import it); synced from the library, do not edit here |
Step 3 (copy verbatim; identical to the design system's copy) |
| templates/packages/shell/src/app/press-feedback-context.test.tsx | Its test (silent without the provider, runs the provider's feedback); synced from the library | Step 3 (copy verbatim) |
templates/packages/tooling/src/audio/ |
encode-wav.ts (+ test) and render-sfx-wav.ts, the repo's WAV preview |
Steps 3 and 8 |
| templates/mocks/react-native-audio-api.ts | Root Jest mock adding the two missing AudioManager methods |
Step 3 |
templates/apps/__GAME_ID__/src/sounds/ |
A game's SOUND_BANK starter and its quality-gate test |
Step 6 |
| examples/sound-slice-report.md | A slice report for a new sound bank: the six sounds for players, the listening and the feel under "Owner steps (not blocking)" (git-commits-and-reporting's check-report.mjs passes it) |
Step 8, when reporting |
| examples/line-siege/sounds/sound-bank.ts | Line Siege v1's bank: exactly the six ids its board cues (place, beam, shock, hit, pop, breach); synced from the library's canonical Line Siege | Step 6, as the model |
| examples/line-siege/sounds/sound-bank.test.ts | Its test: every recipe passes the gate, the ids equal the cued ids, the most repeated sound is the quietest | Step 6 |
| examples/line-siege/board/build-timeline.ts | The Line Siege timeline whose track cues name those six ids with their haptics (place light, beam medium, pop success, breach warning); synced | Step 7, to see where cues sit |
| examples/line-siege/board/monster-tracks.ts | The monster tracks the timeline builds (hit, pop and breach cues); synced | Step 7 |
scripts/check-sound-banks.mjs |
Renders every UI and game sound with a byte-exact synth port, checks the gate, ids, categories, cues vs bank, bank tests and wiring; --wav-dir writes WAVs |
Steps 8 and 10 |
scripts/check-audio-haptics.mjs |
Checks pins, banned packages, vendor imports, the one ambient context, file audio, plugin (and that shellPlugins uses it; not due before Shell step 8), mic string, music default, no Android audio focus, voice and haptic policies (both columns of the cue table), cue call sites, UI feedback call sites (not due before Shell step 6), lifecycle mount, dispose-before-reload, the root mock |
Steps 3 and 10 |
scripts/selftest.mjs |
Proves both checkers pass the good fixtures and catch every planted bug | After changing a checker or a template |
scripts/lib/ |
synth.mjs (synth, sfc32, WAV and gate port with a pinned golden hash) and ts-literal.mjs (literal-data reader) |
When changing a checker |
scripts/check-lib.mjs |
Shared script helper, synced from the library (do not edit here) | Never by hand |
assets/shared.json |
Declares the shared files this skill copies in (check-lib.mjs, the press-feedback context and use-is-app-active.ts with their tests, the Line Siege sounds and timeline) |
When adding a shared file |
tests/build-fixtures.mjs |
Rebuilds tests/fixtures/ from the templates plus one planted bug per case |
After changing a template or a checker, before the self-test |
tests/fixtures/ |
Good repos (the templates) and planted-bad copies for both checkers, a passing step-7 slice (pass-toggle-not-in-slice: the toggle part's slice SKIP), plus a game-first suite (shell-slice.json "screens": []) where the Shell wiring prints SKIP |
When adding a rule |
Related skills
board-rendering-skia- timeline tracks and cues, the cue scheduler that calls these ports, the board lifecycle.settings-and-preferences- the Sound, Music and Vibration rows and the settings-to-audio glue.toybox-design-system,toybox-components- the Pressable hosts that runusePressFeedback.game-host-integration- the result step that plays thewin/losefeedback.realtime-game-loop- sims that emit events the host turns into sounds and haptics.architecture-and-boundaries- ports, adapters, app zones andwithShell.dependency-management- installing and pinning packages, the banned list.ios-release-testflight- upload warnings such as ITMS-90683.game-balance-and-bots- payoff moments worth a sound.
04 同仓库更多 Skills
unit-and-component-tests
Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).
typescript-and-lint-rules
Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
troubleshooting-playbook
Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).
toybox-visual-parity
Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).