Skip to content

1.2.0

Choose a tag to compare

@xelnae-r xelnae-r released this 13 Dec 19:43
· 75 commits to master since this release
862420c

v1.2.0 Sound Manager
Changes:

  • Complete rewrite of the sound system using Registry Pattern
  • Provides type-safe sound names with full autocomplete in TypeScript
  • Simplifies loading, playing, stopping, and preloading sounds

Example Usage:

import { createSoundRegistry } from "@rbxts/sound-manager";

const Sounds = createSoundRegistry({
    SCP096: {
        id: "rbxassetid://4714389545",
        volume: 1,
        loop: false,
    } 
});

Sounds.preloadAll();

Sounds.play("SCP096");

Benefits:

  • No more manual string-based sound names -> autocomplete and type safety
  • Cleaner API for loading and playing sounds