Fixed some mic issues by adding callback.

Recording and sending via UDP is done in a callback now.