Click here to Skip to main content
13,291,084 members (68,150 online)
Rate this:
Please Sign up or sign in to vote.

When I read the title, It sounded like hacking, but it is completely different.

My scenario is "Two PCs have installed the same C# software that I created. With this software, they should see audio and microphone levels of each other and they can change both theirs and others audio and mic levels".

I know how to manage Audio and mic levels, but how can I control other PC when the same software is installed?

Thank you for your answers!
Posted 12-Nov-13 17:45pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Apparently, you cannot control anything on the other computer if this computer does not run some process which communicates on the network and obeys your commands.

First of all, you need to control audio on a local computer. One of the ready-to-use libraries to do it with .NET is NAudio:[^].

Now, you need to create an application which could listen to a network connection (that is, to act as a server part of a network application does), accepts connection and received and sends data, so the received data could be control commands. This can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

The most adequate form for such network application is the Windows Service:[^],[^],[^].

To develop a Windows Service with .NET, start here:[^].

There CodeProject articles could be helpful:
Windows services Error[^],
Configure Windows Service with UI[^].

That's all which is involved. There can be many advanced featured you would need to consider, authentication, and so on.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 12 Nov 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100