public void Dispose()
 {
     if (streamRenderer != null)
     {
         streamRenderer.Dispose();
         streamRenderer = null;
     }
 }
        private void CreateNewRenderer <T>() where T : StreamRenderer
        {
            if (streamRenderer as T == null)
            {
                // Cleanup old renderer
                if (streamRenderer != null)
                {
                    streamRenderer.Dispose();
                    streamRenderer = null;
                }

                // Set up new one
                streamRenderer = Activator.CreateInstance(typeof(T)) as StreamRenderer;
            }
        }
        private MediaRenderer(bool isDefaultInstance)
        {
            streamRenderer = null;

            SuiteRegistrationSupport.Init(GetSupportedFileProvider());

            timerCheckState          = new Timer();
            timerCheckState.Enabled  = true;
            timerCheckState.Interval = 500;
            timerCheckState.Start();
            timerCheckState.Tick += new EventHandler(timerCheckState_Tick);

            if (isDefaultInstance &&
                ProTONEConfig.IsPlayer &&
                ProTONEConfig.SignalAnalisysFunctionActive(SignalAnalisysFunction.WCFInterface))
            {
                InternalInitSignalAnalisysWCF();
            }
        }
Exemplo n.º 4
0
 /// <summary>
 ///     Sets the stream renderer that will be used as output.
 /// </summary>
 internal void SetStreamRenderer(StreamRenderer streamRenderer)
 {
     this.streamRenderer = streamRenderer;
 }
Exemplo n.º 5
0
 /// <summary>
 ///     Sets the stream renderer that will be used as output.
 /// </summary>
 internal void SetStreamRenderer(StreamRenderer streamRenderer)
 {
     this.streamRenderer = streamRenderer;
 }
Exemplo n.º 6
0
 public AreaTree(StreamRenderer streamRenderer)
 {
     this.streamRenderer = streamRenderer;
 }