文档详情

多线程语音聊天系统的设计与实现.PDF

发布:2017-03-23约2.57万字共4页下载文档
文本预览下载声明
30 23 第 卷 第 期 计 算 机 工 程 2004 12 年 月 Vol.30 № 23 Computer Engineering December 2004 ·多媒体技术及应用· 文章编号:1000—3428(2004)23 —0129—03 文献标识码:A 中图分类号:TP311.52 多线程语音聊天系统的设计与实现 谢志鹏,吴清江 (华侨大学计算机科学系,泉州 362011 ) 摘 要:分析了语音聊天系统研制中的几个技术难点,包括语音录制、压缩、传输和播放,解决了录放音的消息处理、多线程与多缓冲机制 在该系统中的运用以及音频压缩解压问题,使该系统的语音通信效果连贯、流畅。 关键词:多线程;语音录制;音频压缩管理;多缓冲队列 Design and Implementation of Multithread Voice Chat System XIE Zhipeng, WU Qingjiang (Computer Science Department,Huaqiao University, Quanzhou 362011 ) Abstract 【 】In the language of visual C++ ,this paper analyzes the key points in the design of voice chat system, including the voice recording , compression ,network transferring and playback ,resolves problems including message handling of recording and playing back, the application of multithread and multi buffer mechanism in this system ,and audio compression and decompression. Therefor this chatting system performs uninterruptedly and with good fluency. Key words 【 】Multithread; Voice recording; Audio compression manager; Multi buffer queue 1 常见语音录制播放技术 收发双方启动程序后,均处于侦听通话邀请状态,当一方向 音频采集和播放有几种模式:高级媒体控制接口 ; 另一方发出通话邀请后,被叫方接受邀请,则双方进入语音 MCI 低级音频设备驱动接口 ;微软 通信状态,双方均启动录音和放音线程,进行全双工的语音 Waveform Audio DirectX SDK 的组件 和 。 接口只能采 通信;如果一方退出
显示全部
相似文档