0.2.1 • Published 7 months ago

@drmer/sound v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Drmer Sound (original PixiJS Sound)

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

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 @drmer/sound --save
import { sound } from '@drmer/sound';

sound.add('my-sound', 'path/to/file.mp3');
sound.play('my-sound');

Resources

License

MIT License.