forked from ncase/wbwwb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When passing multiple sounds to Howl it will automatically pick the first supported one [1]. Most browsers support .opus (Howl also does [2]) which is by far the smallest audio format. This reduces the audio from 1.8MB to 0.66MB. Safari doesn't support .opus so we can .m4a (AAC) for this. This still reduces the audio to 1.33MB. Commands to generate files: Convert `.mp3` to `.wav`: ``` sox bg_creepy.mp3 bg_creepy.wav ``` Convert `.wav` to `.opus`: ``` opusenc --discard-pictures --discard-comments --padding 0 --framesize 60 --bitrate 32 --music bg_creepy.wav bg_creepy.opus ``` Convert `.wav` to `.m4a`: ``` fdkaac -o bg_creepy.m4a bg_creepy.wav -b 64 ``` 1. https://github.com/goldfire/howler.js/#src-arraystring--required 2. https://github.com/goldfire/howler.js/blob/17c3d3d7aedc58f1d0ba1aa0fe94ddda6039e53a/src/howler.core.js#L277
- Loading branch information
1 parent
ed36f0b
commit 15c3295
Showing
37 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.