Have ideas to improve npm?Join in the discussion! »

    @pixi/sound
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.2 • Public • Published

    PixiJS Sound

    WebAudio API playback library, with filters. Modern audio playback for modern browsers.

    Node.js CI

    Features

    • Pausing and resuming
    • Independent volume control
    • Support blocking or layered sounds (multiple instances)
    • Support for PIXI.Loader system
    • Dynamic filters:
      • ReverbFilter
      • DistortionFilter
      • EqualizerFilter
      • StereoFilter
      • TelephoneFilter

    Known Compatibility

    • Chrome 58+
    • Firefox 49+
    • Safari 10+
    • iOS 9+
    • IE 9+

    Usage

    Installation is available by NPM:

    npm i @pixi/sound --save
    import { sound } from '@pixi/sound';
    
    sound.add('my-sound', 'path/to/file.mp3');
    sound.play('my-sound');

    Resources

    License

    MIT License.

    Install

    npm i @pixi/sound

    DownloadsWeekly Downloads

    224

    Version

    4.0.2

    License

    MIT

    Unpacked Size

    715 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar