Skip to content

v0.2.0

Choose a tag to compare

@Technikhighknee Technikhighknee released this 18 Sep 10:32
· 9 commits to master since this release
a127b24

Add first-class Playback.pause() and resume(), acknowledged paused state, and asynchronous getTiming() snapshots with mixer-consumed position and nullable duration. Seeking while paused keeps playback paused. Controls and queries preserve bounded buffering, concurrency ownership, cancellation, cleanup, and failure isolation.

Position is PCM handed to the mixer, not physical-speaker time. getTiming() returns null after settlement; observe both query failures and finished. See the API reference for ordering and timing semantics.

Protocol 3 adds request-token validation and hardened numeric parsing. Native executables must be updated together with JavaScript; all six are included. Node.js 22+ is required. No runtime npm dependencies, external players, or install-time compilation.

The release workflow verifies 109 tests on Windows, macOS, and Linux, x64 and ARM64, Node 22/24, sanitizers, documentation, and installed-package checks. Windows production-device WAV/MP3/FLAC playback was checked; physical macOS/Linux listening remains unverified.

Install with npm install node-playsound@latest.

The attached node-playsound-0.2.0.tgz is byte-for-byte identical to npm's archive. GitHub's automatic source downloads are separate source-code archives.