npm.io
0.1.3 • Published 6d ago

@plasius/game-audio

Licence
Apache-2.0
Version
0.1.3
Deps
0
Size
57 kB
Vulns
0
Weekly
163

@plasius/game-audio

npm version Build Status coverage License Code of Conduct Security Policy Changelog

Engine-agnostic in-game audio contracts for Plasius runtime packages.

Apache-2.0. ESM + CJS builds. TypeScript types included.

Installation

npm install @plasius/game-audio

Scope

This repository is part of the Plasius in-game audio package suite.

It owns:

  • typed audio commands for TTS, dialogue, diegetic SFX, music, ambience, and System/UI sounds
  • stable bus and category taxonomy
  • engine-agnostic asset references and playback policy contracts
  • privacy-safe telemetry and rollout flag constants

It does not own game-world authority, speech provider credentials, raw TTS generation, or product-specific feature-flag evaluation.

Feature Flag

  • game.audio.foundation.enabled

Usage

import {
  packageDescriptor,
  GAME_AUDIO_PACKAGE,
  GAME_AUDIO_FEATURE_FLAG_ID,
} from "@plasius/game-audio";

console.log(packageDescriptor.packageName === GAME_AUDIO_PACKAGE);
console.log(packageDescriptor.featureFlagId === GAME_AUDIO_FEATURE_FLAG_ID);

Development

npm install
npm run build
npm test
npm run test:coverage
npm run pack:check

Governance

License

Apache-2.0

Keywords