sound
sound copied to clipboard
🔊 A Vue composable for playing sound effects
Fix issue #11
How can i use multiple sound source without using sprites? Different buttons can be play different sounds
Thank you to share this amazing project. But I got some problems with setup on my vue2 project. ERROR in /Users/---/Developer/**/node_modules/@vueuse/sound/dist/esm/src/types.d.ts 1:35 Could not find a declaration file for module...
This only works on desktop browsers. It would be nice if it worked on mobile too.
Without the `types` key in the `export` section of `package.json` the typescript compiler complains that cannot find a declaration file: ```txt error TS7016: Could not find a declaration file for...
Using the vue setup composition api here: ```ts import ping from './assets/ping.wav'; import { useSound } from '@vueuse/sound'; const pingSound = useSound(ping); async function clickTheButton() { pingSound.play(); } ``` Everything...
Uncaught (in promise) TypeError: My code: ``` import { useSound } from "@vueuse/sound"; const { play } = useSound("pop.mp3"); ``` my nuxt.config.ts: ``` export default defineNuxtConfig({ css: ["@/assets/css/main.css"], devtools: {...
Can't use `ComposableOptions` inside a composable right now if the options are flowing from outside. This fixes as it would export the `ComposableOptions` in the type declaration and can be...
Hi ! Jest raises an error when I try to run my test with `npm run test:unit` : ``` /home/nicolas/repo/smooth-pomodoro/node_modules/@vueuse/sound/dist/index.mjs:1 ({"Object.":function(module,exports,require,__dirname,__filename,jest){import { ref, onMounted, unref, watch } from 'vue-demi'; SyntaxError:...
I fixed `watch` not working when url's value changed.