Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: warz on May 20, 2006, 01:20 AM

Title: Voice communication over the internet?
Post by: warz on May 20, 2006, 01:20 AM
Anyone ever messed with doing this? I'd assume it's probably similar to file streams, or socket data streams. Anyone have any information about it?
Title: Re: Voice communication over the internet?
Post by: FrOzeN on May 20, 2006, 01:42 AM
I haven't tried doing this.

But maybe one place to start would be looking into Audacity (http://audacity.sourceforge.net/download/source) source code, and learning how to get/play the data from the microphone. Then just find a suitable format to use for streaming over sockets.
Title: Re: Voice communication over the internet?
Post by: raylu on May 21, 2006, 02:48 PM
Voice communication as in something similar to TS or Ventrillo?

Almost all of it uses UDP, I believe, for the actual voices to be sent. TCP to establish who's sending what to whom and about what, though.
Title: Re: Voice communication over the internet?
Post by: warz on May 21, 2006, 02:55 PM
Quote from: raylu on May 21, 2006, 02:48 PM
Voice communication as in something similar to TS or Ventrillo?

Almost all of it uses UDP, I believe, for the actual voices to be sent. TCP to establish who's sending what to whom and about what, though.

Yes, something similar to team speak. I was wondering how hard it would be to make an in game interface for voice communication through brood war, warcraft 3, d2, etc.
Title: Re: Voice communication over the internet?
Post by: raylu on May 21, 2006, 08:58 PM
In-game interface as in...you don't have to run a seperate EXE?

I think it would be very hard and very pointless.
Title: Re: Voice communication over the internet?
Post by: warz on May 21, 2006, 09:53 PM
Pointless? Nah. Hard? Only if voice over ip is hard.

Think about it, a hack for brood war, war 2, diablo 2, war 3, etc that automatically checks to see if other users in the game are running the same hack - if so, connect and allow voice chatting without having to press a button to talk, or press a button to talk, that could be optional.

Ofcourse, this would only work in the games that use UDP, or tell everyone your IP by some other means.
Title: Re: Voice communication over the internet?
Post by: rabbit on May 22, 2006, 04:53 PM
Screwing with Diablo II's processes is not recommended.
Title: Re: Voice communication over the internet?
Post by: l)ragon on May 22, 2006, 07:07 PM
Quote from: rabbit on May 22, 2006, 04:53 PM
Screwing with Diablo II's processes is not recommended.
D2 open would, closed would not.
Title: Re: Voice communication over the internet?
Post by: rabbit on May 22, 2006, 08:43 PM
Open sucks anyway, so it doesn't matter all that much.
Title: Re: Voice communication over the internet?
Post by: DeTaiLs on May 22, 2006, 11:03 PM
iirc this was done for Brood War not to long and the source was posted over at bwh, since bwh has been taken down maybe ask over there they might still have the source for it.
Title: Re: Voice communication over the internet?
Post by: warz on May 23, 2006, 06:42 AM
Quote from: rabbit on May 22, 2006, 04:53 PM
Screwing with Diablo II's processes is not recommended.

If nobody did anything unless it was recommended, then there'd be no such thing as reverse engineering.