SFX.js : Simple JavaScript audio wrapper for easy Sound Effects

SFX.js : Simple JavaScript audio wrapper for easy Sound Effects

Simple audio wrapper for easy sound effects on your website. SFX.js plays OGG files when browser supports them, and falls back to MP3 otherwise. OGG is prioritized because it is an open format with developer friendly licensing, unlike MP3… If a browser support for OGG files will be ubiquitous, I’d like to drop support for MP3 in SFX.js.

SFX works in Chrome, Opera, Firefox, Safari (with issues), and IE9+ (haven’t tested other browsers). Supported file types are:

  • Chrome: OGG + MP3
  • Opera: OGG
  • Firefox: OGG
  • Safari: MP3
  • IE9: MP3

Leave a Reply