Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

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

1 solution

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: http://naudio.codeplex.com/[^].

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:
http://en.wikipedia.org/wiki/Windows_Service[^],
http://technet.microsoft.com/en-us/library/cc783643%28v=ws.10%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ms685141.aspx[^].

To develop a Windows Service with .NET, start here: http://msdn.microsoft.com/en-us/library/zt39148a.aspx[^].

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.

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900