Пример #1
0
 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);
 }
Пример #2
0
 public static PlugInRouter GetInstance()
 {
     return(_instance ?? (_instance = new PlugInRouter()));
 }
Пример #3
0
 public static PlugInRouter GetInstance()
 {
     return _instance ?? (_instance = new PlugInRouter());
 }
Пример #4
0
 public Host(Form hostForm)
 {
     _hostForm = hostForm;
     Router    = PlugInRouter.GetInstance();
 }
Пример #5
0
 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);
 }