StartAudioContext Op
This op is deprecated!
It will not receive any updatesStarts the web audio context on iOS / Chrome
Summary (oneliner)
On iOS / Chrome (starting April 2018) you cannot play a sound unless the playback was initiated by a user interaction (touch). Using this op the first touch on one of the selectors (the whole patch per default) starts the audio context and therefore allows you to play sounds on iOS.
Uses github.com/tambien/StartAudioContext by Yotam Mann.
- Ops.Extension.Deprecated.StartAudioContext
- Extension Op - Visible to all users
- MIT
- StartAudioContext (Starts the Web Audio API's AudioContext on an explicit user action.)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
No op example found on this server
INPUT PORTS
Whether or not to to use custom selector(s), if not the canvas is used
Selectors of the HTML DOM elements which start the audio context (separated by spaces, e.g. '#myButton .otherButtons'). Per default this is the whole patch – #glcanvas
OUTPUT PORTS
Once the audio context has been started (and it is therefore save to play sounds) this becomes true
Patches using StartAudioContext
Changelog
fixed - removed a user op from tim which was causing the patch to not load for users | andro - 2019-02-11 14:01 |