コード例 #1
0
 protected virtual void onBlackScreen(VideoEventArgs e)
 {
     if (frameBuffer[frameBuffer.Length - 1] == null)
     {
         return;
     }
     BlackScreen?.Invoke(this, e);
     for (int i = 0; i < e.frameBuffer.Length; i++)
     {
         e.frameBuffer[i]?.Dispose();
     }
 }
コード例 #2
0
 protected virtual void onBlackScreen(BlackScreenEventArgs e)
 {
     if (frameBuffer[0] == null)
     {
         return;
     }
     BlackScreen?.Invoke(this, e);
     for (int i = 0; i < frameBuffer.Length; i++)
     {
         frameBuffer[i]?.Dispose();
         frameBuffer[i] = null;
     }
 }