最近在play wav时候发现,即使单路呼叫,也会占用大量CPU资源,于是官网求助:
How can I reduce the CPU usage/maximize the performance of my application?
。。。。。。
4、Avoid resampling. Resampling is a CPU intensive process, thus itshould be avoided if you can, by choosing uniform clock rate for allmedia components (sound device, conference bridge, codecs, WAV files,etc.).
按照官网的方法一步步调整,效果不明显,后来突然想到:本地上传的wav文件是不是与系统采样频率不一致?于是修改本地音频文件采样频率,发现本地音频采样频率与系统一致时候,CPU确实大幅度减少,因此大家遇到类似问题,希望能有启发