我遇到了烦人的音频问题,非常感谢任何帮助!
问题:播放开始时声音延迟 2-3 秒。它仅在空闲后第一次启动时出现,如果我在其中一个正在播放或刚刚停止时在源之间切换,则工作正常。
Manjaro Linux,内核 5.10。英特尔声卡。自动静音已禁用。添加intel_iommu=igfx_off
到 grub 参数中。尝试应用解决方案https://wiki.archlinux.org/title/PulseAudio/Troubleshooting,但没有任何帮助(或者我只是错过了一些东西)
提示:在以前的硬件上运行良好。从戴尔 XPS 9570 切换到 9500(i5-8300H -> i5-10300H)
脉冲音频配置:
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
rescue-streams = yes
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-14.2/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target =
log-level = notice
resample-method = auto
avoid-resampling = no
enable-remixing = yes
remixing-use-all-sink-channels = yes
remixing-produce-lfe = no
remixing-consume-lfe = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 200000
答案1
请检查这是否有效:
- 注销
- Ctrl + Alt + F2 -> 登录
mv ~/.config/pulse ~/.config/pulse.bak
reboot
答案2
如果其他人将来发现这个并且它不能解决他们的问题(像我一样),我的黑猩猩大脑解决方法是制作一个静音音频文件并将其设置为循环作为我的第一个提示。这似乎让事物保持活力,因此其他线索会立即触发。