Comments (4)
createWave/createWaves creates Audio objects. You can see the full spec at http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#the-audio-element . To stop the sound you can just use sound.pause()
. Also here's a tip; to see what things an element supports you can use: for(var e in (new Audio())) console.log(e)
.
from jsfx.
It is exactly what I was looking for. Thank you for that.
from jsfx.
I am sorry, I still get an issue because I don't really understand how to stop or pause the current sound. Should I make a button with sound.pause()
? And Should I create a this.pause
function in jsfxguy.js?
from jsfx.
Pause method is available on all Audio objects. So just call pause on the currently playing wave.
var wave = audio.make(data);
wave.play();
...
wave.pause();
from jsfx.
Related Issues (12)
- Mobile safari HOT 3
- Sound signal appears to be cut-off HOT 7
- CDN HOT 2
- How to create sound for one channel like left speaker or right speaker HOT 4
- How to get the raw data (WAV format) as a string to create a base64 dataURI? HOT 6
- Which files need to be hosted? HOT 10
- Figure out what to do about AudioContext and Chrome
- small noise on generated sounds HOT 6
- request: NPM package? HOT 1
- Callbacks / Custom events on audio ready? HOT 2
- jsmusic
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 jsfx.