We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for converting audio into audio sprites
The text was updated successfully, but these errors were encountered:
Could we wrap tonistiigi/audiosprite?
Sorry, something went wrong.
cc @Zyie
Have published a little wrapper plugin for audiosprite: assetpack-plugin-audiosprite
audiosprite
npm install assetpack-plugin-audiosprite --save-dev
// .assetpack.js const { audiosprite } = require('assetpack-plugin-audiosprite'); module.exports = { audiosprite: audiosprite() };
Note
See README.md for plugin options here
raw-assets/ my_sounds{sfx}/ cry.m4a laugh.wav sneeze.mp3 whine.mp3 yell.aiff
audiosprite: audiosprite({ tags: { audiosprite: 'sfx' }, // default: 'audiosprite' audiosprite: { // configure 'audiosprite' options: export: 'mp3,ogg', bitrate: 64, samplerate: 32_000 } }),
assets/ my_sounds/ my_sounds.json my_sounds.mp3 my_sounds.ogg
Here's a quick extension to load the files audiospriteAsset.ts (pixi v7, but should be same/pretty close to v8)
// register loader extensions.add(audiospriteAsset);
// load sprites const mySounds = await Assets.load('assets/sfx.json'); mySounds.play('bark');
No branches or pull requests
Add support for converting audio into audio sprites
The text was updated successfully, but these errors were encountered: