In Chrome 55+ the function setVelocity has been removed. If your C++ game depends on OpenAL and somewhere you call:
alSource3f(mAlSourceId, AL_VELOCITY, …
alSource3f(mAlSourceId, AL_SOURCE_RELATIVE, ...
Then you should either remove those calls, but if your game depends on AL_SOURCE_RELATIVE and you cannot remove it, then it’s required to add a simple snipped to your HTML page:
// A stub for missing setVelocity in Chrome 56+
try {
if (typeof PannerNode.prototype.setVelocity == "undefined") {
PannerNode.prototype.setVelocity = function() {}
}
} catch (e) {}
try {
if (typeof AudioListener.prototype.setVelocity == "undefined") {
AudioListener.prototype.setVelocity = function() {}
}
} catch (e) {}
It’s required due an underlying implementation that sets velocity while you call set source relative.
