private void ConstructUsing(EngineMode mode, Host host, int audioDeviceIndex) { Mode = mode; _host = host; _plugInRouter = Host.Router; if (mode == EngineMode.Synchronous) { _eventTimer = new Timer(1.0); _eventTimer.Elapsed += EventTimerElapsed; _fmod = fmod.GetInstance(audioDeviceIndex); } else { _eventTimer = null; _fmod = null; } _engineContext = new EngineContext(); InstanceList.Add(this); }
public static PlugInRouter GetInstance() { return(_instance ?? (_instance = new PlugInRouter())); }
public static PlugInRouter GetInstance() { return _instance ?? (_instance = new PlugInRouter()); }
public Host(Form hostForm) { _hostForm = hostForm; Router = PlugInRouter.GetInstance(); }