blecsd-audio
@blecsd/audio Package Skill
The @blecsd/audio package provides audio management for blECSd terminal applications. It uses an adapter pattern where blECSd manages state and the user provides the actual audio playback implementation. All blECSd functional programming rules apply.
Install: pnpm add @blecsd/audio
Peer dependency: blecsd >= 0.7.0
Import: import { createAudioManager, AudioChannel } from '@blecsd/audio'
Core Concepts
- AudioManager - Manages state (volume, mute, active sounds) without playing audio directly
- AudioAdapter - User-provided interface that does the actual audio playback
- AudioChannel - Two channels:
Music(0) andSFX(1), each with independent volume/mute - SoundTrigger - Event-based sound triggers that automatically play sounds on events
Quick Start
import { createAudioManager, AudioChannel } from '@blecsd/audio';
More from kadajett/blecsd-skill
blecsd-3d
Render 3D graphics in the terminal with @blecsd/3d. Covers software rasterizer, 3D math (vec3/mat4), multiple backends (braille/sixel/kitty), OBJ loading, scene graphs, and camera systems.
6blecsd-media
Render images, GIFs, PNGs, and video in the terminal with @blecsd/media. Covers GIF/PNG parsing, ANSI rendering, image widgets, video playback, and W3M overlay.
4blecsd-ai
Build AI/LLM terminal interfaces with @blecsd/ai. Covers streaming conversation UIs, markdown rendering, token tracking, tool call visualization, and agent workflow displays.
4blecsd-game
Build terminal games with @blecsd/game. Covers the high-level game API, input actions, fixed timestep physics, game loop lifecycle, and widget creation for game development.
4blecsd-tui
Best practices and module map for blECSd, a modern TypeScript terminal UI library built on ECS (bitecs). Use when building, reviewing, or refactoring blECSd apps, widgets, systems, or ECS/game-loop code.
4