Author: razelan | Posted on: 6/24/2010 4:22:37 AM | Views : 326

I am learning voice chat on silverlight. I found it has been delayed for 1 second from my voice to the others speaker.
The process of voice transfer like this: 
First , the voice has been recorded to the buffer on the client. 
Step 2, when  the buffer is full, the voice data has been encoded and send to the chat server
Step 3, The chat server sends the data to every client except the sender.
Setp 4,the clients received data,then decoded it
At last ,the clients play voice.
I have traced the whole process and I found the time cost of Setp 2,3,4 is less than 0.1 second. It means the time deday should be cause in Step 1 or 5. Then I checked the log of chat server.The logs  as follows:
1534265 1534265 0.3729
1535156 1535156 1.7957
1536171 1536171 0.0835
1537171 1537171 0.0824
1538187 1538187 0.1639
1539187 1539187 0.093
1540203 1540203 0.1058
...

Go to the complete details ...