public AlphaSynthWebWorkerApiBase(ISynthOutput player, string alphaSynthScriptFile)
{
_player = player;
_player.ReadyChanged += PlayerReadyChanged;
_player.PositionChanged += PlayerPositionChanged;
_player.SampleRequest += PlayerSampleRequest;
_player.Finished += PlayerFinished;
_events = new FastDictionary<string, FastList<JsFunction>>();
_alphaSynthScriptFile = alphaSynthScriptFile;
// create web worker
_synth = new Worker(CreateWorkerUrl());
}