Closed TamoshaytisV closed 3 years ago
@joshwcomeau please review
Thanks @TamoshaytisV!
Shipped in 2.1.0, though I haven't added anything to the docs about it. Debating if it's worth mentioning (are there reasons besides browser support that someone would want to do this? I believe mp3s are widely-enough supported that it feels too niche to be worth prime real-estate in the README, but maybe there are other reasons to do this?)
MP3’s are widely supported, but the way I would use MP3’s with this is as the last resort fallback option.
The way howler suggests using it is putting the more ‘unique’/highly compressed/etc version forst, then having MP3/similar as your ‘legacy browser’ fallback.
Not sure if it needs to be in the README directly, but documented would definitely be useful.
Issue: https://github.com/joshwcomeau/use-sound/issues/17
Description: This PR allows passing multiple source files to the Howl constructor (see howler.src)
Usage:
Old behavior stays and prev codebase should not be affected