摘要
当前数字语音通信已在许多领域得到了广泛应用。文章阐述了应用音频处理API函数 ,采用Client/Server模式和双套接字机制,在基于Windows 98系统上完成多点双向语音通信的方法,并给出其实现过程。实现机制为发送端利用低层音频服务的回调机制对音频数据块进行动态循环处理,防止了由于系统在写满语音输入缓冲区后,新、旧缓冲区交换时有一定的间隙而产生的输入数据泄漏。接收端采用数据缓冲机制,避免了由于网络延时等待音频数据而产生的话音停顿。
Currently, digital speech communication has been extensively applied in many fields. In this article, the multiple full-duplex speech communication based on Windows 98 is demonstrated, which is implemented with double-socket by Win32 API under the mode of client/server. The sending point processes the data dynamically and repeatedly using the call-back mechanism of low level audio-service. This prevents data leak due to the exchange between the new and the old buffer. The receiving point adopts data buffer mechanism to avoid the pause caused by delay of network.
出处
《计算机工程》
CAS
CSCD
北大核心
2003年第6期123-125,共3页
Computer Engineering