cwilso / audiocontext-monkeypatch Goto Github PK
View Code? Open in Web Editor NEWMonkeypatch to use proper AudioContext naming on prefixed/deprecated named systems.
Monkeypatch to use proper AudioContext naming on prefixed/deprecated named systems.
The following code will throw on iOS 9:
http://requirebin.com/?gist=f20e6ed34715e99a6fe4
The important part is ~ line 25:
sample.start(undefined);
Calling sample.start()
does NOT throw in iOS9.
Why does this matter? Because by default the Monkey Patch will allow when
to be undefined
: https://github.com/cwilso/AudioContext-MonkeyPatch/blob/gh-pages/AudioContextMonkeyPatch.js#L100.
I wanted to write up a patch, but I haven't had time to check the spec for what is actually allowed to be undefined and what is not (there could be other discrepancies, including the other parameters of .start
but my code only uses AudioBufferSourceNodes at the moment).
Hello Chris
Thanks for this library :-)
A while ago you merged Stuart Memo's nice patch that made the library work with Safari too, but apparently the gh-pages
branch is the default for this project, and it's the first thing visitors see.
You might have your personal reasons (maybe using gh-pages for publishing) but I wonder if you could merge master
into gh-pages
so that people get the latest version by default.
Would it be possible to add support for OfflineAudioContext()/webkitOfflineAudioContext()?
https://github.com/cwilso/AudioContext-MonkeyPatch/blob/gh-pages/AudioContextMonkeyPatch.js#L95
node.stop = node.noteoff;
to
node.stop = node.noteOff;
Thanks for a nice patch, Chris!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.