Open NewCreature opened 12 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.
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.