On 2017-12-24 09:36, Michael Van Canneyt wrote:
If it was standard on all browsers (it is not on IE), then we could add it to web.pas. But since IE does not support it, the classes can then be added to a new units websound.pas.
Sounds like a good candidate for a Decorator or Factory Method/Class design pattern to have a single sound API for Pas2JS usage - no matter the web browser.
On a side note: Your posted web audio URL gives me a 404 error. I did find another URL though. Not sure how new or old that information is, but being on w3.org, I assume it is still relevant. https://www.w3.org/TR/webaudio/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal