internal void Update()
 {
     if (GetQueuedSampleCount() > 0)
     {
         BufferReady.Invoke(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
            public static void Save(IValueSink sink, BufferReady value)
            {
                sink.EnterSequence();
                Value <uint> .Save(sink, value.NotificationThreshold);

                Value <uint> .Save(sink, value.PreviousNotificationCount);

                sink.LeaveSequence();
            }
Exemplo n.º 3
0
            public static void Save(IValueSink sink, BufferReady value)
            {
                sink.EnterSequence();
                Value <DeviceObjectPropertyReference> .Save(sink, value.BufferProperty);

                Value <uint> .Save(sink, value.PreviousNotification);

                Value <uint> .Save(sink, value.CurrentNotification);

                sink.LeaveSequence();
            }
 internal void Update()
 {
     if (BufferReady != null)
     {
         int sampleCount = GetQueuedSampleCount();
         if (sampleCount > 0)
         {
             BufferReady.Invoke(this, sampleCount);
         }
     }
 }
Exemplo n.º 5
0
 public BufferReadyWrapper(BufferReady item)
 {
     this.Item = item;
 }
Exemplo n.º 6
0
 public static void Save(IValueSink sink, BufferReady value)
 {
     sink.EnterSequence();
     Value<DeviceObjectPropertyReference>.Save(sink, value.BufferProperty);
     Value<uint>.Save(sink, value.PreviousNotification);
     Value<uint>.Save(sink, value.CurrentNotification);
     sink.LeaveSequence();
 }
Exemplo n.º 7
0
 public int GetData(byte[] buffer, int offset, int count)
 {
     // Just to avoid warning on BufferReady, code to remove
     BufferReady?.Invoke(this, EventArgs.Empty);
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
 public BufferReadyWrapper(BufferReady item)
 {
     this.Item = item;
 }
Exemplo n.º 9
0
 public static void Save(IValueSink sink, BufferReady value)
 {
     sink.EnterSequence();
     Value<uint>.Save(sink, value.NotificationThreshold);
     Value<uint>.Save(sink, value.PreviousNotificationCount);
     sink.LeaveSequence();
 }