Beispiel #1
0
        protected override void OnStart(string[] args)
        {
            VolSyncLog.WriteEntry("Begun Syncing");
            //Set Volume of both monitors
            defDevice = enumer.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);
            List <MMDevice> dvcs = enumer.EnumerateAudioEndPoints(DataFlow.Render, DeviceState.All).ToList();

            foreach (MMDevice device in dvcs)
            {
                if (device.DeviceFriendlyName.Contains("MX279-1"))
                {
                    mon1 = device;
                }
                if (device.DeviceFriendlyName.Contains("MX279-2"))
                {
                    mon2 = device;
                }
            }
        }
Beispiel #2
0
 protected override void OnStop()
 {
     VolSyncLog.WriteEntry("Stopped Syncing");
 }