audio
Play sound effects (SE) and background music (BGM) with volume, fading, and playback control. Sound effects are one-shot; BGM is continuous with transport controls.
Import
import { audio } from "@hmcs/sdk";
Functions
| Function | Description |
|---|---|
| se.play | Play a one-shot sound effect |
| bgm.play | Start background music playback |
| bgm.stop | Stop the currently playing BGM |
| bgm.pause | Pause the currently playing BGM |
| bgm.resume | Resume paused BGM playback |
| bgm.update | Update volume or speed while playing |
| bgm.status | Get the current BGM playback status |