pulseaudio daemon.conf 配置翻译 卡顿问题

本文介绍了如何解决在使用pulseaudio处理蓝牙音箱项目时遇到的卡顿问题。重点在于调整resample-method为trivial以降低CPU负载,并详细解释了如何查看和计算音频设备的buffer_size和fragment_size,通过修改daemon.conf文件中的default-fragment-size-msec参数来减少卡顿。实验结果显示,降低该参数值虽然提高了CPU占用,但消除了卡顿现象。
摘要由CSDN通过智能技术生成

由于公司蓝牙音箱的项目用到pulseaudio

出现了卡顿,google了很多资料觉得配置文件真的得好好看看

pulseaudio 官方的配置说明
arch linux 关于pulseaudio 的问题说明
其中最重要的配置是关于声音算法的配置
resample-method= The resampling algorithm to use. Use one of src-sinc-best-quality, src-sinc-medium-quality, src-sinc-fastest, src-zero-order-hold, src-linear, trivial, speex-float-N, speex-fixed-N, ffmpeg. See the documentation of libsamplerate for an explanation for the different src- methods. The method trivial is the most basic algorithm implemented. If you're tight on CPU consider using this. On the other hand it has the worst quality of them all. The Speex resamplers take an integer quality setting in the range 0..9 (bad...good). They exist in two flavours: fixed and float. The former uses fixed point numbers, the latter relies on floating point numbers. On most desktop CPUs the float point resmampler is a lot faster, and it also offers slightly better quality. See the output of dump-resample-methods for a complete list of all available resamplers. D

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值