Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# audio RemoteControl
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 12-Nov-13 16:45pm

1 solution

Rate this: bad
good
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: 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
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 12 Nov 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid