SoundEngine engine

Get or set the SoundEngine that is used to load and play sounds.

The engine is automatically detected based on the best engine supported by the browser. It is possible to override the detected engine with a different one. Setting the engine to null will switch back to the automatically detected engine.

Source

static SoundEngine get engine {
  _initEngine();
  return _engineOverride ?? _engineDetected;
}
void engine=(SoundEngine value)

Source

static set engine(SoundEngine value) {
  _engineOverride = value;
  _initEngine();
}