engine property

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.

Implementation

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

Implementation

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