I'm starting to build an encrypted VoIP application in C++ in my spare time. I have a few years experience of C++, but not much networking. I'm brushing up on WinSock now, but am unsure about the VoIP aspect. I was wondering, how do you 'read' the sound coming from the microphone and what format is it represented in. Will it be wav?

Any tutorials relating to VoIP in C++ (or in general) would be appreciated.

Thanks