Ubuntu混音成功

为什么在同时打开两个应用程序时不能听到声音呢?大多数Linux初学者都遇到这样一个问题:“为什么我在同时打开两个应用程序时不能听到声音呢?”这是因为你的声卡需要“软混音”。值得庆幸的是,ALSA提供了这项功能,这使得解决这个问题并不是很难。 首先需要安装libesd-alsa0,它就在Ubuntu官方软件库中。 sudo apt-get install libesd-alsa0然后,用sudo gedit或您喜欢的文本编辑器创建文件/etc/asound.conf(请确定您使用了sudo,,因为您需要root权限): sudo gedit /etc/asound.conf输入一下内容并保持关闭。 pcm.card0 { type hw card 0}pcm.!default { type plug slave.pcm “dmixer”}pcm.dmixer { type dmix ipc_key 1025 slave { pcm “hw:0,0” period_time 0 period_size 1024 buffer_size 4096 periods 128 rate 44100 } bindings { 0 0 1 1 }}(上面的文件可以在大多数声卡上正常运行…尽管我成功地测试了三个不同的声卡,但我还是不能确保它可以使所有声卡都能正常运行) 接下来,运行

海内存知已,天涯若比邻。

Ubuntu混音成功

相关文章:

你感兴趣的文章:

标签云: