Sign in to follow this  
betteroff

directPlay options

Recommended Posts

im a C# coder and was wondering what would be a good way to inplement voice communication into my game now that DP has beeen removed from directX, what potions are out there, or are there samples out there that that give you examples on creating your own voice system. thanks for the help

Share this post


Link to post
Share on other sites
Google for "Speex" which is a reasonable, open source voice codec.

Then, open a DirectSound input stream, start reading data, and feeding it to the codec. For each packet produced, send a UDP datagram to your destination.

On the receiving side, open a DirectSound output stream. Receive UDP packets, and decode them into a queue of data. Each time through your main loop, lock the stream and copy whatever data you have, and fits. If you don't have enough data right now, generate silence.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this