@plasius/game-audio-spatial
v0.1.3
Published
Spatial acoustic obstruction and occlusion contracts for Plasius game audio.
Maintainers
Readme
@plasius/game-audio-spatial
Spatial acoustic obstruction and occlusion contracts for Plasius game audio.
Apache-2.0. ESM + CJS builds. TypeScript types included.
Installation
npm install @plasius/game-audio-spatialScope
This repository is part of the Plasius in-game audio package suite.
It owns:
- listener and emitter pose contracts
- acoustic material and obstacle profiles
- deterministic obstruction estimates for gain, low-pass, spread, and hard-clip hints
- adapter boundaries for scene and physics integrations
It does not own game-world authority, speech provider credentials, raw TTS generation, or product-specific feature-flag evaluation.
Feature Flag
game.audio.sfx-occlusion.enabled
Usage
import {
packageDescriptor,
GAME_AUDIO_SPATIAL_PACKAGE,
GAME_AUDIO_SPATIAL_FEATURE_FLAG_ID,
} from "@plasius/game-audio-spatial";
console.log(packageDescriptor.packageName === GAME_AUDIO_SPATIAL_PACKAGE);
console.log(packageDescriptor.featureFlagId === GAME_AUDIO_SPATIAL_FEATURE_FLAG_ID);Development
npm install
npm run build
npm test
npm run test:coverage
npm run pack:checkGovernance
- Architecture decisions: docs/adrs
- Security policy: SECURITY.md
- Code of conduct: CODE_OF_CONDUCT.md
- CLA and legal docs: legal
License
Apache-2.0
