NewCreature / JoyNet

A base networking engine which synchronize input over a network to produce duplicate games.
3 stars 2 forks source link

Add Voice Chat #2

Open NewCreature opened 12 years ago

NewCreature commented 12 years ago

Voice chat will use the Speex codec. We will create a generic interface for feeding in audio. Audio will be compressed with Speex and sent over the network.

Voice chat messages will be sent through the chat channel. The server will receive the voice chat data from all clients, decode it, mix it, and re-encode it. We should pick a suitable default sampling rate and handle all audio in that format. Speex can handle resampling so we can use that to ensure the input and output audio match the desired sampling rate.

NewCreature commented 10 years ago

The front end is implemented and seems to be working. The actual audio encoding/decoding and record/playback will be handled through a backend. This way you can use whatever libraries you want. I will be including an Allegro/speex backend for my convenience. Other backends may be added if others contribute them.