AudioWorkerNode Status in Web Audio API

According to the docs , the AudioWorker node should be functional. When I try to create it, the console discards:

TypeError: context.createAudioWorker is not a function.

My code is:

var context;
if (typeof AudioContext !== 'undefined') {
  context = new AudioContext();
} 
else if (typeof webkitAudioContext !== 'undefined') {
  context = new webkitAudioContext();
} 
else {
  throw new Error('AudioContext not supported. :(');
}

var foo = context.createAudioWorker();

Am I doing it wrong or not implemented in FF / Chrome?

+4
source share
1 answer

It is not yet implemented in Chrome. This is a plan, but implementation has not yet begun.

+5
source

Source: https://habr.com/ru/post/1620226/


All Articles