Comments (2)
You don't use the getInstanceById() method to play sounds. Simply use the static SoundJS.play() method.
Once you play the sound, you get back an instance with a unique ID. This ID is what you can use to look up instances you have already created using the getInstanceById method.
from soundjs.
ok I see. I thought the id getInstanceById() is expecting was the one that is specified as the id value in the anonymous object used as an argument in preload.loadFile(). Not what I was looking for. I've found a workaround for what I was needing.
thanks
from soundjs.
Related Issues (20)
- How to ignore Iphone mute switch HOT 7
- sometime when IPhone safari minimize return website is mute
- Command not found.
- How to loop sound seamlessly/without gap?
- Audio Play Error (OnMediaSinkAudioError)
- SoundJS 2.0 uses `loops` instead of `loop`
- Broken Link on CreateJS website
- get current sound playing Time while playing sound
- no possiblity to pauze music with the new button in chrome 'to change the music from tab to tab'
- Play a local music file with changed frequency?
- Safari Never Auto-Play setting causes long delay ending in `fileerror` with no information. HOT 20
- SoundJS Demos not working in iOS 14
- Sound randomly stopping after minimizing/maximizing iPadOS 14.4.2 HOT 2
- Still maintained? HOT 1
- soundjs play mp3, When playing at a higher speed, the pitch becomes higher HOT 1
- soundSprite Not Properly Loading In HOT 1
- Why does audio on iOS stop when unplugging headphones?
- Dr. Drago sleep
- Vestidos
- Baked
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soundjs.