Hello
I made chat program working by LAN (IP), and I use Microsoft Winsock Control.
Can I make voice chat (from Mics) by using LAN (IP) Microsoft Winsock Control? and how?
Thanks
Last edited by onh1986; Nov 17th, 2006 at 07:59 AM.
You can play music on your computer, the program will record the music you are playing, and send it as a streamed MP3 to the user connected to your computer using winsock. The user connected to your comptuer, can use WinAmp (http://www.winamp.com ) to listen to your radio station.
In order to solve any problem, you need to know WHAT is the problem !
If you don't tell me what exactly does not work, i won't be able to help you.
Obviously you are doing something wrong, because I tested it and it works, and no one else beside you said that it does not work...
So, try to tell me what does not work, or I won't be able to help you
Did you try (just for testing) to connect from the same computer ? that should work for sure, and if it does not, then it means that you did not folow the instructions I gave in that thread
OK, in the picture attached, do you have "Clients connected: 1" ??
Also, are the 2 circles moving by the sound ?
If you DO have "Clients connected: 1" then it meas that the client DID connect, and all you need is to play some music (or microphone) on the server side.
If you ARE playing music (or talk in microphone), and the bars are not moving, then it means that you did not choose the propper input device for recording.
That is done in Windows... from "Master Volume" you choose Options -> Properties -> Recording, make sure you have ALL the checkmarks, then choose the "Wave" as input device if you play music, or choose "Microphone" if you talk in the microphone.
If the bars start to move in my program, then it means that the sound reaches the program, and it's recording properly...
I didn't edit anything in the code.
Both computers have launched the program "ShoutcastServer.exe" and clicked on the "Record" button.
And Clients Connected is still "0".
P.S: I can connect to another program by other programs and I can browse its files, so the connection is working.
Turn on the ShoutcastServer, then you will see in the ZIP file with the project an HTML file, double click that HTML file
When the is opened in your internet browser, click on the BIG LINK
Winamp should open, and it should connect to the server
If you look at the server, you should see "Clients connect: 1"
Now PLEASE tell me that you did it, and that it worked !
I'm leaving work, so I won't be able to reply to you in the next few hours.
Do what I said in the previous post.
Just remember that the program DOES NOT RECEIVE THE SOUND.... it only records and then it sends the sound to the WinAmp program when it connects.
So you problem is that you turned on the server on both computers, but there was nothing to read the sound... you do that with WinAmp...
ShoutcastServer is the program that is recording, and sending the sound
WinAmp is the client program that plays the sound.
The sound will go ONE WAY, if you want it 2 way, then you have to start the server at both comptuers (the way you did before), AND ALSO start on BOTH comptuers WinAmp. And each WinAmp should connect to the other computer.
You have to understand my instructions, otherwise it will not work !
Frankly, I have no idea why it's taking you so long to understand how it works, when it is so simple !
As I was saying in the first post that I posted, you can modify my program to work like that, but keeping in mind how long it took you to just start the program, I really doubt that you can modify it...
First of all you will need to work out exactly how the program works at the moment (which from what I've read, you aren't clear on at all).
Once you have fully understood it, you need to work out what parts need to change.. then find out the possible methods for doing what you want, followed by choosing the methods you will use, and then implementing them.
It's a fair amount of work, and I'm afraid you cannot expect anyone to do it for you - you need to be able to do most of it on your own. We volunteer our time to help people who are stuck, not to guide them thru every step of the process of creating a working program.
If you are finding it all too much (rather than just a few specific parts you need help with), it would be wise to leave it for a while, and come back to it when you have more programming experience.