Android 模拟器运行时的系统音频问题

Max*_*Max 17 sound android emulation android-emulator 18.04

我以前没有遇到过这个问题,但最近,当我运行 Google 的 Android 模拟器时,我的系统音频(不是在谈论模拟器的音频)听起来非常失真和金属感。有时它会正常工作一分钟,然后又开始听起来一团糟。一旦我关闭模拟器,一切听起来都很好。无论我使用扬声器还是耳机,我都遇到了这个问题。我在 Ubuntu 18.04 上使用最新版本的 Android Studio。

有没有人对修复或解决方法有任何线索?

编辑:作为一种解决方法,我从终端启动模拟器

emulator -noaudio -avd my_avd
Run Code Online (Sandbox Code Playgroud)

这似乎解决了声音问题,但显然不是理想的解决方案。

小智 25

我做了这个链接上写的东西,它为我解决了这个问题。

/etc/pulse/default.pa更改load-module module-udev-detectload-module module-udev-detect tsched=0

并在/etc/pulse/daemon.conf更改; default-sample-rate = 44100default-sample-rate = 48000

最后重启pulseaudio pulseaudio -k(或者你只是重启电脑)