Problem Description
I am getting warnings/errors in the Console when running exported web games. The issues seems to be related to the audio plugin. (The games works but maybe you need to look into this)
Seems like Chrome will change it support for these features in this coming release. v64 and v65.
Attach a Capx
do not think it is needed, you can export anything with audio (I guess)
Description of Capx
--
Steps to Reproduce Bug
- just create a game in construct2, with audio.
- Export for web
- upload and run in browser and look in console
Observed Result
When running a game in Chrome i see this in the console:
[Deprecation] AudioParam value setter will become equivalent to AudioParam.setValueAtTime() in M65, around March 2018 See https://webaudio.github.io/web-audio-api/#dom-audioparam-value for more details.[/code:26b5pa2x]
this realtes to c2runtime.js:17201
The "errouneous" line is the line with setPosition:
[code:26b5pa2x] if (api === API_WEBAUDIO)
{
context["listener"]["setPosition"](draw_width / 2, draw_height / 2, this.listenerZ);
context["listener"]["setOrientation"](0, 0, 1, 0, -1, 0);
window["c2OnAudioMicStream"] = function (localMediaStream, tag)
{[/code:26b5pa2x]
I also get this in the console:
[code:26b5pa2x][Deprecation] GainNode.gain.value setter smoothing is deprecated and will be removed in M64, around January 2018. Please use setTargetAtTime() instead if smoothing is needed. See https://www.chromestatus.com/features/5287995770929152 for more details.[/code:26b5pa2x]
relates to c2runtime.js:16553
It is the line with the gainNode
[code:26b5pa2x] if (this.buffer.myapi === API_WEBAUDIO)
{
this.gainNode["gain"]["value"] = vol * masterVolume;
if (!this.fresh)[/code:26b5pa2x]
[b]Expected Result[/b]
I did expect to not get this warnings.
[b]Affected Browsers[/b]
[ul]
[li] Chrome: YES (Latest Chrome! Version 64.0.3282.167)
[/li][li] FireFox: (I do not know)
[/li][li] Internet Explorer: (I do not know)[/li][/ul]
[b]Operating System and Service Pack[/b]
Windows 10, latest
[b]Construct 2 Version ID[/b]
Latest: Beta Release (r253) (64bit win10)