Byt*_*der 7 sound command-line ascii-art
bb正如您在此视频中看到的那样,我安装并期待一些带有声音的有趣 ASCII 动画。但是,一旦音乐开始,动画就会冻结,而音频会继续播放。如果我在没有音乐的情况下运行它,动画会按预期播放(只是静默)。
我尝试从桌面和 TTY 运行它,在这两种情况下,只要音乐开始,动画就会冻结。我尝试在音频设置对话框中将所有开关设置为“关闭”,bb但这也没有改变任何东西。
我的硬件是一款非常现代且功能强大的笔记本电脑,运行带有标准 Unity 桌面的 Ubuntu 16.04。
bb音频无法正常工作的原因可能是什么,有没有办法解决?
问题显然是bb与 Ubuntu 默认使用的 PulseAudio 不兼容。软件包随附的自述文件中隐藏了有关此内容的注释:
$ cat /usr/share/doc/bb/README.Debian
BB vs PulseAudio
================
Unfortunately BB does not work under X if PulseAudio is active and
Music is requested. Due to this issue Music in BB is turned off by
default in Debian.
If you have PulseAudio installed and want to show off BB with Music,
you can do that by either:
* switching to the virtual text console and running "bb" there, or by
* temporarily letting PulseAudio release the audio hardware and hiding
from "bb" the fact that there is a PulseAudio server with the
following command:
pasuspender -- env PULSE_SERVER= bb
This issue is tracked in the Debian Bug Tracking System at
https://bugs.debian.org/761023
-- Axel Beckert <abe@debian.org>, Sat, 11 Apr 2015 15:22:37 +0200
Run Code Online (Sandbox Code Playgroud)
正如问题中所描述的,bb在 TTY 中运行对我来说没有任何改变(也许是因为桌面仍在运行,也许我应该启动到文本模式?)。
然而,让它绕过 PulseAudio 的建议命令效果非常好:
pasuspender -- env PULSE_SERVER= bb
Run Code Online (Sandbox Code Playgroud)
小智 1
snd-pcm-oss您也可以在运行之前加载bb:
sudo modprobe snd-pcm-oss
Run Code Online (Sandbox Code Playgroud)
bb(然后在命令行输入即可正常启动bb )。