Ejemplo n.º 1
0
 public Sink(Context c, SinkInfo info)
 {
     context            = c;
     this.info          = info;
     Name               = info.Name;
     Description        = info.Description;
     MonitorSourceName  = info.MonitorSourceName;
     Driver             = info.Driver;
     Properties         = info.Properties.Copy();
     context.SinkEvent += HandleRawSinkEvent;
 }
Ejemplo n.º 2
0
 private void UpdateFromInfo(SinkInfo i)
 {
     if (info.volume != i.volume)
     {
         EventHandler <VolumeChangedEventArgs> handler;
         lock (eventHandlerLock) {
             handler = _volumeChangedHandler;
         }
         if (handler != null)
         {
             handler(this, new VolumeChangedEventArgs(i.volume));
         }
     }
     info              = i;
     Description       = i.Description;
     MonitorSourceName = i.MonitorSourceName;
     Driver            = i.Driver;
 }