예제 #1
0
 public ExecutionImpl(Host host)
 {
     _host = host;
     _registeredContexts = new Dictionary<int, ExecutionContext>();
     _preferences = ((ISystem) Interfaces.Available["ISystem"]).UserPreferences;
     _errorLog = Path.Combine(Paths.DataPath, "iexecution.err");
 }
예제 #2
0
파일: Engine8.cs 프로젝트: jmcadams/vplus
 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);
 }
예제 #3
0
파일: Engine8.cs 프로젝트: jmcadams/vplus
 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);
 }