public ExecutionImpl(Host host) { _host = host; _registeredContexts = new Dictionary<int, ExecutionContext>(); _preferences = ((ISystem) Interfaces.Available["ISystem"]).UserPreferences; _errorLog = Path.Combine(Paths.DataPath, "iexecution.err"); }
internal Engine8(EngineMode mode, Host host, int audioDeviceIndex) { IsPaused = false; IsLooping = false; IsRunning = false; _runLock = new object(); _useSequencePluginData = false; AudioSpeed = 1f; _isLoggingEnabled = false; _isStopping = false; ConstructUsing(mode, host, audioDeviceIndex); }
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); }