示例#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;
                }
            }
        }
示例#2
0
 protected override void OnStop()
 {
     VolSyncLog.WriteEntry("Stopped Syncing");
 }