npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@soundweave/playback-engine

v1.0.2

Published

Real-time playback, mixing, and effects for SoundWeave

Readme

@soundweave/playback-engine

Soundweave场景和序列的实时播放、混合、渲染和效果系统。

主要功能

  • 传输控制(播放、暂停、停止、跳转)
  • 资源加载和解码
  • 带有音轨混合的场景播放
  • 场景之间的过渡播放
  • 序列播放(有序的场景链)
  • 具有每个音轨和总线级控制的混音器
  • 效果处理(均衡器、延迟、混响、压缩器)
  • 预览渲染和离线导出
  • WAV编码

主要导出内容

import {
  Transport,
  AssetLoader,
  ScenePlayer,
  TransitionPlayer,
  SequencePlayer,
  Mixer,
  CueRenderer,
  CuePlayer,
  createFxNodes,
  disposeFxNodes,
  dbToGain,
  encodeWav,
} from "@soundweave/playback-engine";

核心类

  • Transport:播放状态、定时和跳转
  • AssetLoader:获取和解码音频资源
  • ScenePlayer:播放带有分层音轨的场景
  • TransitionPlayer:场景之间的淡入淡出和过渡
  • SequencePlayer:播放有序的场景序列
  • Mixer:每个音轨的增益、声相、静音、独奏、总线路由
  • CueRenderer:离线渲染到音频缓冲区
  • CuePlayer:协调预览级别的播放

效果

  • createFxNodes / disposeFxNodes:效果链的生命周期
  • 内置的均衡器、延迟、混响和压缩器预设

依赖项

  • @soundweave/schema:场景、音轨和过渡的类型定义
  • @soundweave/audio-engine:音频播放的基本功能
  • @soundweave/scene-mapper:用于场景解析的触发器评估