突然,我开始在 Ubuntu 18.04 声音设置中获取虚拟输出。
我尝试了网上常见的所有方法,包括重新安装 pulseaudio 和 alsa-base:
sudo apt install --reinstall pulseaudio alsa-base
并修改 /etc/modprobe.d/alsa-base.conf 以添加以下行:
options snd-hda-intel index=1
但没有什么能可靠地工作。ALSA 似乎可以正确检测音频卡:
aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Generic_1 [HD-Audio Generic], device 0: ALC255 Analog [ALC255 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 0/1 Subdevice #0: subdevice #0
但 Pulseaudio 不会对这些设备进行罚款:
pacmd list-cards
0 card(s) available.
仅显示虚拟输出:
pacmd list-sinks
1 sink(s) available.
* index: 0
name: <auto_null>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 1000
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 8.65 ms
max request: 3 KiB
max rewind: 3 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 18.75 ms; range is 0.50 .. 2000.00 ms
module: 14
properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
我很茫然,不知道下一步该去哪里检查。
链接到以详细模式运行的 pulseaudio 的输出:https://pastebin.cnx-software.com/?5d3d73271588c486#7hN1zJZUpgWkXhpUSGAnSw6767JU73SLBZKGihsLEseN
除了“未找到流”之外,我没有发现任何异常