@superherocheesecake/loaders-howler-loader
v2.0.4
Published
Use as a loader for @superherocheesecake/loader.
Downloads
6
Maintainers
Keywords
Readme
Sound Howler loader
Use as a loader for @superherocheesecake/loader.
Usage
Give an array with [.ogg, .mp3] (that order) in the source. Returns a Howl intance.
Example
import { loader } from '@superherocheesecake/loader';
import HowlerLoader from '@superherocheesecake/loaders-howler-loader';
loader.use([
...
{test: /\.(ogg|mp3)$/, loader: HowlerLoader},
...
]);
loader.queue([
{id: 'sound', source: [file.ogg, file.mp3], loader: HowlerLoader}
]);