作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (14): 199-201. doi: 10.3969/j.issn.1000-3428.2006.14.073

• 多媒体技术及应用 • 上一篇    下一篇

一个负载自适应的实时音频播放算法

谭毓安;艾本仁;曹元大;张雪兰   

  1. 北京理工大学计算机科学与工程系,北京 100081
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-07-20 发布日期:2006-07-20

A Load Adaptive Real-time Audio Playout Algorithm

TAN Yu’an;AI Benren;CAO Yuanda;ZHANG Xuelan   

  1. Dept. of Computer Science and Engineering, Beijing Institute of Technology, Beijing 100081
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-07-20 Published:2006-07-20

摘要: 研究了Windows操作系统中网络电话软件的实时播放音频的策略。在非实时系统中,音频播放程序不能严格地被定时执行,播放缓冲区被耗尽而产生播放空隙。采用DirectSound技术,以ms为单位来控制音频的播放,并根据负载的变化动态地调整每一个话音期的门限值来减少播放空隙。实验结果表明,该算法能够以较小的时延为代价来获取平滑的播放效果。

关键词: 音频传输, 播放延时, 播放空隙, Windows

Abstract: A real-time audio playout strategy for Internet phone tools in Windows is proposed. On a non-realtime system, the time interval between two instances of the audio playout thread being scheduled is not strictly equal, the audio output buffer exhaust then gaps of slience are produced. DirectSound is ultilized to control the playout at the granularity in millisecond level, an threshold is adjusted for each talkspurt based on the current load. The experiments show that this algorithm is able to reduce the slience gaps significantly at the cost of a small latency.

Key words: Audio transmission, Playout latency, Playout gap, Windows