Esempio n. 1
0
 public void Set(BDEvent data)
 {
   buffer[writePos] = data;
   writePos = (writePos + 1) % size;
   if (readPos == writePos)
     Log.Error("BDPlayer: Event buffer full");
 }
Esempio n. 2
0
 public int OnBDevent(BDEvent bdevent)
 {
   if (bdevent.Event != 0 && 
     bdevent.Event != (int)BDEvents.BD_EVENT_STILL &&
     bdevent.Event != (int)BDEvents.BD_EVENT_STILL_TIME)
   {
     eventBuffer.Set(bdevent);
     //Log.Debug("BDPlayer OnBDEvent: {0}, param: {1}", bdevent.Event, bdevent.Param);
   }
   return 0;
 }